Specify a default for container_registry_logins
When we run this, if we try to evaulate this without the variable being set it errors. We assume empty if the variable is unset. Change-Id: Ic6eea050cd627d9d09745bf194c2dd36b015e6ff Closes-Bug: #1835657
This commit is contained in:
parent
1217799b1b
commit
884a8f6f1b
@ -8,5 +8,5 @@
|
|||||||
username: "{{ lookup('dict', item.value).key }}"
|
username: "{{ lookup('dict', item.value).key }}"
|
||||||
password: "{{ lookup('dict', item.value).value }}"
|
password: "{{ lookup('dict', item.value).value }}"
|
||||||
registry: "{{ item.key }}"
|
registry: "{{ item.key }}"
|
||||||
loop: "{{ query('dict', container_registry_logins) }}"
|
loop: "{{ query('dict', container_registry_logins | default({})) }}"
|
||||||
when: container_registry_logins | length > 0
|
when: container_registry_logins | length > 0
|
||||||
|
Loading…
Reference in New Issue
Block a user