Skip to content
Snippets Groups Projects
Commit 680d0aa3 authored by nimrod's avatar nimrod
Browse files

Format with Black.

parent 63271c1e
No related branches found
No related tags found
No related merge requests found
Pipeline #4248 passed
......@@ -21,9 +21,11 @@ def get_project_containers_health(client, project):
their status).
"""
return {
i: i.attrs["State"]["Health"]["Status"]
i: (
i.attrs["State"]["Health"]["Status"]
if "Health" in i.attrs["State"]
else i.attrs["State"]["Status"]
)
for i in client.containers.list(
filters={"label": f"com.docker.compose.project={project}"}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment