diff --git a/docker-healthcheck.py b/docker-healthcheck.py index d421503..b046567 100644 --- a/docker-healthcheck.py +++ b/docker-healthcheck.py @@ -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__":