Skip to content

Commit

Permalink
remove f-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
bn222 committed Nov 14, 2024
1 parent a59d568 commit 1cb006f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ipu.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,10 @@ def _version_via_redfish(self) -> str:
data = self._requests_get(url)
fwversion = data.get("FirmwareVersion")
if not isinstance(fwversion, str):
logger.error_and_exit(f"Failed to get FirmwareVersion")
logger.error_and_exit("Failed to get FirmwareVersion")
match = re.search(r"^MEV-.*\.([0-9]+\.[0-9]+\.[0-9]+)\.[0-9]+$", fwversion.strip())
if not match:
logger.error_and_exit(f"Failed to extract version")
logger.error_and_exit("Failed to extract version")
return match.group(1)

def _version_via_ssh(self) -> Optional[str]:
Expand All @@ -358,7 +358,7 @@ def version(self) -> str:
else:
fwversion = self._version_via_ssh()
if not fwversion:
raise RuntimeError(f"Failed to detect imc version thourgh ssh")
raise RuntimeError("Failed to detect imc version thourgh ssh")
return fwversion


Expand Down

0 comments on commit 1cb006f

Please sign in to comment.