mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-17 04:18:42 +00:00
Fix archive idempotency. (#765)
This commit is contained in:
parent
648e0652d5
commit
ac41379119
2
changelogs/fragments/765-docker_image-archive.yml
Normal file
2
changelogs/fragments/765-docker_image-archive.yml
Normal file
@ -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:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user