Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion anms-core/anms/routes/system_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ def get_containers_status():
# If no other check defined, test that host can be pinged
try:
cmd = ["ping", "-c1", f"-W{timeout}", hostname]
result = subprocess.run(cmd, shell=False)

# Capturing output to suppress it (otherwise it floods system log)
result = subprocess.run(cmd, shell=False, capture_output=True, text=True)
Comment thread
DavidEdell marked this conversation as resolved.
Outdated
if result.returncode == 0:
statuses[name] = "healthy"
else:
Expand Down
Loading