fix error when node_image caching is used with crictl

pull/11202/head
Payback159 2024-10-11 15:38:34 +02:00
parent 08a0541c75
commit d509ef65ae
1 changed files with 2 additions and 2 deletions

View File

@ -2,8 +2,8 @@
- name: Download | Set node_images (crictl)
set_fact:
node_images: >-
"{{
{{
(node_images | default([])) +
[{'Digest': (item.repoDigests[0] | split('@'))[1], 'Repository': ((item.repoTags[0] | split(':'))[0] | regex_replace('^docker\.io/(library/)?', '')), 'Tag': (item.repoTags[0] | split(':'))[1]}]
}}"
}}
with_items: "{{ (node_images_raw.stdout | from_json).images }}"