Skip to content

Commit

Permalink
Fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
decoupca committed Sep 6, 2023
1 parent aaa3b55 commit 5e4f948
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion napalm/nxos/nxos.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ def rollback(self) -> None:
assert isinstance(self.device, NXOSDevice)
if not self._check_file_exists(cfg_file=self.rollback_cfg):
msg = f"Rollback file '{self.rollback_cfg}' does not exist on device."
raise ReplaceConfigException(msg=msg)
raise ReplaceConfigException(msg)
self.device.rollback(self.rollback_cfg)
self._copy_run_start()
self.changed = False
Expand Down
2 changes: 1 addition & 1 deletion napalm/nxos_ssh/nxos_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def _load_cfg_from_checkpoint(self):
def rollback(self):
if not self._check_file_exists(self.rollback_cfg):
msg = f"Rollback file '{self.rollback_cfg}' does not exist on device."
raise ReplaceConfigException(msg=msg)
raise ReplaceConfigException(msg)

commands = [
"terminal dont-ask",
Expand Down

0 comments on commit 5e4f948

Please sign in to comment.