Skip to content

Commit

Permalink
Fix exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
pszulczewski committed Dec 15, 2023
1 parent 38a37ab commit 5d6cb29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyntc/devices/asa_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ def install_os(self, image_name, **vendor_specifics):
self._wait_for_device_reboot(timeout=timeout)
if not self._image_booted(image_name):
log.error("Host %s: OS install error for image %s", self.host, image_name)
raise OSInstallError(hostname=self.facts.get("hostname"), desired_boot=image_name)
raise OSInstallError(hostname=self.hostname, desired_boot=image_name)

log.info("Host %s: OS image %s installed successfully.", self.host, image_name)
return True
Expand Down
2 changes: 1 addition & 1 deletion pyntc/devices/nxos_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def install_os(self, image_name, **vendor_specifics):
self._wait_for_device_reboot(timeout=timeout)
if not self._image_booted(image_name):
log.error("Host %s: OS install error for image %s", self.host, image_name)
raise OSInstallError(hostname=self.facts.get("hostname"), desired_boot=image_name)
raise OSInstallError(hostname=self.hostname, desired_boot=image_name)
self.save()

log.info("Host %s: OS image %s installed successfully.", self.host, image_name)
Expand Down

0 comments on commit 5d6cb29

Please sign in to comment.