mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-09-12 19:07:24 +00:00
Fix archive idempotency. (#765)
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- "docker_image - fix archiving idempotency with Docker API 1.44 or later (https://github.com/ansible-collections/community.docker/pull/765)."
|
||||||
@@ -126,6 +126,12 @@ def archived_image_manifest(archive_path):
|
|||||||
exc
|
exc
|
||||||
)
|
)
|
||||||
|
|
||||||
|
for prefix in (
|
||||||
|
'blobs/sha256/', # Moby 25.0.0, Docker API 1.44
|
||||||
|
):
|
||||||
|
if image_id.startswith(prefix):
|
||||||
|
image_id = image_id[len(prefix):]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
repo_tags = m0['RepoTags']
|
repo_tags = m0['RepoTags']
|
||||||
except KeyError as exc:
|
except KeyError as exc:
|
||||||
|
|||||||
Reference in New Issue
Block a user