mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-03-16 04:04:31 +00:00
Adjust push detection to Docker 29.
This commit is contained in:
parent
3204def50c
commit
c6a4ba25cf
2
changelogs/fragments/1199-docker_image-push.yml
Normal file
2
changelogs/fragments/1199-docker_image-push.yml
Normal file
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- "docker_image, docker_image_push - adjust image push detection to Docker 29 (https://github.com/ansible-collections/community.docker/pull/1199)."
|
||||
@ -803,7 +803,7 @@ class ImageManager(DockerBaseClass):
|
||||
if line.get("errorDetail"):
|
||||
raise RuntimeError(line["errorDetail"]["message"])
|
||||
status = line.get("status")
|
||||
if status == "Pushing":
|
||||
if status in ("Pushing", "Pushed"):
|
||||
changed = True
|
||||
self.results["changed"] = changed
|
||||
except Exception as exc: # pylint: disable=broad-exception-caught
|
||||
|
||||
@ -159,7 +159,7 @@ class ImagePusher(DockerBaseClass):
|
||||
if line.get("errorDetail"):
|
||||
raise RuntimeError(line["errorDetail"]["message"])
|
||||
status = line.get("status")
|
||||
if status == "Pushing":
|
||||
if status in ("Pushing", "Pushed"):
|
||||
results["changed"] = True
|
||||
except Exception as exc: # pylint: disable=broad-exception-caught
|
||||
if "unauthorized" in str(exc):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user