diff --git a/changelogs/fragments/804-compose-v2-waiting.yml b/changelogs/fragments/804-compose-v2-waiting.yml new file mode 100644 index 000000000..b960c9ec9 --- /dev/null +++ b/changelogs/fragments/804-compose-v2-waiting.yml @@ -0,0 +1,2 @@ +bugfixes: + - "docker_compose_v2 - do not consider a ``Waiting`` event as an action/change (https://github.com/ansible-collections/community.docker/pull/804)." diff --git a/plugins/module_utils/compose_v2.py b/plugins/module_utils/compose_v2.py index 477848a4d..2a048ac19 100644 --- a/plugins/module_utils/compose_v2.py +++ b/plugins/module_utils/compose_v2.py @@ -38,7 +38,6 @@ DOCKER_STATUS_WORKING = frozenset(( 'Creating', 'Starting', - 'Waiting', 'Restarting', 'Stopping', 'Killing', @@ -57,7 +56,10 @@ DOCKER_STATUS_ERROR = frozenset(( 'Error', )) -DOCKER_STATUS = frozenset(DOCKER_STATUS_DONE | DOCKER_STATUS_WORKING | DOCKER_STATUS_PULL | DOCKER_STATUS_ERROR) +DOCKER_STATUS_WAITING = frozenset(( + 'Waiting', +)) +DOCKER_STATUS = frozenset(DOCKER_STATUS_DONE | DOCKER_STATUS_WORKING | DOCKER_STATUS_PULL | DOCKER_STATUS_ERROR | DOCKER_STATUS_WAITING) DOCKER_PULL_PROGRESS_DONE = frozenset(( 'Already exists',