We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d0c24e commit 9e0c108Copy full SHA for 9e0c108
testinfra/test_ami_nix.py
@@ -375,10 +375,12 @@ def is_healthy(ssh) -> bool:
375
result = run_ssh_command(ssh, command)
376
if not result["succeeded"]:
377
info_text = ""
378
- info_command = f"sudo journalctl -b -u {service} -n 10 -r --no-pager"
+ info_command = (
379
+ f"sudo journalctl -b -u {service} -n 10 -r --no-pager"
380
+ )
381
info_result = run_ssh_command(ssh, info_command)
382
if info_result["succeeded"]:
- info_text=info_result["stdout"].strip()
383
+ info_text = info_result["stdout"].strip()
384
385
logger.warning(f"{service} not ready{info_text}")
386
return False
0 commit comments