fixed behavior pinging self on container not found

This commit is contained in:
Lu Baumann 2024-01-02 12:07:14 +00:00
parent 120e9f9c5b
commit af88f9de6e

View File

@ -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__":