Fix to raw image upload

item.type is incorrect for raw image upload

Change-Id: I87beb0daf2a240e861b8faf1b8cd4ac371ce91e3
This commit is contained in:
akrzos 2017-06-07 15:15:20 -04:00
parent f4785dd1a0
commit ad3406deb2
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
with_items: "{{ images }}"
- name: Upload raw image into cloud (Newton and Ocata versions)
shell: . {{ browbeat_venv }}/bin/activate; . {{ overcloudrc }}; openstack image create --public --disk-format=raw --container-format=bare {{ images[item].name }} < {{ home_dir }}/{{ images[item].name }}.{{ images[item].type }}
shell: . {{ browbeat_venv }}/bin/activate; . {{ overcloudrc }}; openstack image create --public --disk-format=raw --container-format=bare {{ images[item].name }} < {{ home_dir }}/{{ images[item].name }}.raw
ignore_errors: true
when: "images[item].convert_to_raw == true"
with_items: "{{ images }}"