fixed behavior pinging self on container not found
This commit is contained in:
parent
120e9f9c5b
commit
af88f9de6e
@ -36,8 +36,7 @@ def main() -> None:
|
||||
f"Container has status '{container_status}' which is not one of 'healthy' or 'running'"
|
||||
)
|
||||
except docker.errors.NotFound:
|
||||
if "self" in checks:
|
||||
requests.post(checks["self"] + "/fail", f"Container '{container_id}' not found.")
|
||||
requests.post(checks[container_id] + "/fail", f"Container '{container_id}' not found.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user