From ad3406deb2b46026dcc979e1a547c28e123f9add Mon Sep 17 00:00:00 2001 From: akrzos Date: Wed, 7 Jun 2017 15:15:20 -0400 Subject: [PATCH] Fix to raw image upload item.type is incorrect for raw image upload Change-Id: I87beb0daf2a240e861b8faf1b8cd4ac371ce91e3 --- ansible/install/roles/images/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/install/roles/images/tasks/main.yml b/ansible/install/roles/images/tasks/main.yml index dcbd67eff..b0fabbd96 100644 --- a/ansible/install/roles/images/tasks/main.yml +++ b/ansible/install/roles/images/tasks/main.yml @@ -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 }}"