Merge "Handle no metadata in zuul artifact items"

This commit is contained in:
Zuul 2019-03-29 20:43:44 +00:00 committed by Gerrit Code Review
commit 344d7ef6e5
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@
skopeo --insecure-policy copy
{{ item.url }}
docker://{{ buildset_registry.host }}:{{ buildset_registry.port }}/{{ item.metadata.repository }}:{{ item.metadata.tag }}
when: "item.metadata.type | default('') == 'container_image'"
when: "metadata in item and item.metadata.type | default('') == 'container_image'"
loop: "{{ zuul.artifacts | default([]) }}"
always:
- name: Remove docker user config