Fix bug cannot create images in devstack
When launch devstack, the function for creating images such as
OpenWRT, cirros is not called. This patch will fix that bug.
Closes-Bug:
@@ -340,6 +340,9 @@ function tacker_check_and_download_images {
gunzip -c $FILES/$image_fname > $FILES/$new_image_fname
image_fname=$new_image_fname
fi
+ }
+ fi
+ {
openstack_image_create $FILES/$image_fname $glance_name
}||{
echo "ERROR: tacker image create for $image_fname failed"
@@ -348,7 +351,6 @@ function tacker_check_and_download_images {
exit 1
}
fi
- fi
index=$(($index+1))
done
}
