Skip to content

Commit 6f499c7

Browse files
committed
fix long lines
1 parent 8311154 commit 6f499c7

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

ipu.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,8 @@ def _run_curl(self, command: str, *, quiet: bool = False) -> host.Result:
235235
lh = host.LocalHost()
236236
if not quiet:
237237
logger.info(command)
238-
result = lh.run(
239-
f"curl -v -u {self.user}:{self.password} {command}",
240-
log_level=-1 if quiet else logging.DEBUG,
241-
)
238+
lvl = -1 if quiet else logging.DEBUG
239+
result = lh.run(f"curl -v -u {self.user}:{self.password} {command}", log_level=lvl)
242240
if not quiet:
243241
logger.info(result)
244242
return result
@@ -353,10 +351,8 @@ def boot_iso_with_redfish(self, iso_path: str) -> None:
353351
self._unset_bootsource_override()
354352

355353
def _virtual_media_is_inserted(self, filename: str) -> bool:
356-
result = self._run_curl(
357-
f"-k 'https://{self.url}:8443/redfish/v1/Systems/1/VirtualMedia/1'",
358-
quiet=True,
359-
)
354+
cmd = f"-k 'https://{self.url}:8443/redfish/v1/Systems/1/VirtualMedia/1'"
355+
result = self._run_curl(cmd, quiet=True)
360356
if result.returncode != 0:
361357
return False
362358
try:

0 commit comments

Comments
 (0)