Merge "Fix issue with image download when checksum url is none"

This commit is contained in:
Zuul 2019-10-25 16:02:54 +00:00 committed by Gerrit Code Review
commit 48bc325f28
1 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,8 @@
- name: Ensure the image is downloaded
vars:
checksum: "{{ image_download_checksum_algorithm }}:{{ expected_checksum.content.split(' ')[0] }}"
# NOTE(wszumski): This is evaluated even when expected_checksum is skipped
checksum: "{{ image_download_checksum_algorithm }}:{{ expected_checksum.content.split(' ')[0] if 'content' in expected_checksum else '' }}"
get_url:
url: "{{ image_download_url }}"
dest: "{{ image_download_dest }}"