Fix image create functions for Ironic
This fixes an issue where --container-format was not passed to
'openstack image create'.
Change-Id: If1431c8dc8ff8e940f99e984939f5b2732bb0ee0
Closes-Bug: 1357495
diff --git a/lib/ironic b/lib/ironic
index b05edcf..147b28c 100644
--- a/lib/ironic
+++ b/lib/ironic
@@ -500,6 +500,7 @@
image create \
$(basename $IRONIC_DEPLOY_KERNEL_PATH) \
--public --disk-format=aki \
+ --container-format=aki \
< $IRONIC_DEPLOY_KERNEL_PATH | grep ' id ' | get_field 2)
IRONIC_DEPLOY_RAMDISK_ID=$(openstack \
--os-token $token \
@@ -507,6 +508,7 @@
image create \
$(basename $IRONIC_DEPLOY_RAMDISK_PATH) \
--public --disk-format=ari \
+ --container-format=ari \
< $IRONIC_DEPLOY_RAMDISK_PATH | grep ' id ' | get_field 2)
}