From 680d0aa362a7535d2d4f6ded8995292b6f09deab Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 4 Jan 2025 20:01:00 +0200 Subject: [PATCH] Format with Black. --- images/docker/compose-health-check | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/images/docker/compose-health-check b/images/docker/compose-health-check index 9fc6461..97f942f 100755 --- a/images/docker/compose-health-check +++ b/images/docker/compose-health-check @@ -21,9 +21,11 @@ def get_project_containers_health(client, project): their status). """ return { - i: i.attrs["State"]["Health"]["Status"] - if "Health" in i.attrs["State"] - else i.attrs["State"]["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}"} ) -- GitLab