Fix skipping glance check if deploy images not defined

Somewhere along the line, the default None value for deploy_kernel and
deploy_ramdisk gets converted to a string. Allow for both possibilities.

Change-Id: Ia06bff344262f82956da1d6548bae9a30fcdffd9
TrivialFix
This commit is contained in:
Mark Goddard 2018-11-26 10:42:31 +00:00
parent 50cf161bf9
commit 347ee1cc7f
1 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,9 @@
- "{{ ironic_deploy_ramdisk }}"
# ironic_deploy_kernel/ramdisk default to none. We don't need to know them
# for enrolment to continue.
when: item is not none
when:
- item is not none
- item != ""
register: deploy_image_ids
changed_when: false