mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 11:55:04 +00:00
Fix archive idempotency. (#765)
This commit is contained in:
@@ -126,6 +126,12 @@ def archived_image_manifest(archive_path):
|
||||
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:
|
||||
repo_tags = m0['RepoTags']
|
||||
except KeyError as exc:
|
||||
|
||||
Reference in New Issue
Block a user