From 1cb006fcdc7603bc089166a4fe62dd911c1b58c5 Mon Sep 17 00:00:00 2001 From: Balazs Nemeth Date: Thu, 14 Nov 2024 18:43:42 +0100 Subject: [PATCH] remove f-strings --- ipu.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ipu.py b/ipu.py index 3eee85db..534b6d77 100644 --- a/ipu.py +++ b/ipu.py @@ -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]: @@ -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