From 99611549553fa6c61b2d18912c56a90b5d3595c3 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sat, 6 Dec 2025 17:19:26 +0100 Subject: [PATCH] Add 'Working' to image working actions. --- plugins/module_utils/_compose_v2.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/module_utils/_compose_v2.py b/plugins/module_utils/_compose_v2.py index 8714eeba..b22c4537 100644 --- a/plugins/module_utils/_compose_v2.py +++ b/plugins/module_utils/_compose_v2.py @@ -132,7 +132,7 @@ DOCKER_PULL_PROGRESS_DONE = frozenset( "Pull complete", ) ) -DOCKER_PULL_PROGRESS_WORKING = frozenset( +DOCKER_PULL_PROGRESS_WORKING_OLD = frozenset( ( "Pulling fs layer", "Waiting", @@ -141,6 +141,7 @@ DOCKER_PULL_PROGRESS_WORKING = frozenset( "Extracting", ) ) +DOCKER_PULL_PROGRESS_WORKING = frozenset(DOCKER_PULL_PROGRESS_WORKING_OLD | {"Working"}) class ResourceType: @@ -191,7 +192,7 @@ _RE_PULL_EVENT = re.compile( ) _DOCKER_PULL_PROGRESS_WD = sorted( - DOCKER_PULL_PROGRESS_DONE | DOCKER_PULL_PROGRESS_WORKING + DOCKER_PULL_PROGRESS_DONE | DOCKER_PULL_PROGRESS_WORKING_OLD ) _RE_PULL_PROGRESS = re.compile( @@ -523,7 +524,7 @@ def parse_json_events( status, text = text, status elif ( text in DOCKER_PULL_PROGRESS_DONE - or line_data.get("text") in DOCKER_PULL_PROGRESS_WORKING + or line_data.get("text") in DOCKER_PULL_PROGRESS_WORKING_OLD ): resource_type = ResourceType.IMAGE_LAYER status, text = text, status