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:
Alex Schultz 2019-07-12 15:01:20 -06:00
parent 1217799b1b
commit 884a8f6f1b
1 changed files with 1 additions and 1 deletions

View File

@ -8,5 +8,5 @@
username: "{{ lookup('dict', item.value).key }}"
password: "{{ lookup('dict', item.value).value }}"
registry: "{{ item.key }}"
loop: "{{ query('dict', container_registry_logins) }}"
loop: "{{ query('dict', container_registry_logins | default({})) }}"
when: container_registry_logins | length > 0