Removed unused TOKEN from upload_image

Changeset https://review.openstack.org/#/c/225426/ changed how images
were uploaded into Glance, however the (now) unused TOKEN variable
and function argument to upload_image remained.

These have been removed.

Change-Id: I9910c469f72d52e56111048cc24ea3c992c1d480
This commit is contained in:
Peter Stachowski 2015-09-22 19:38:02 +00:00
parent c4c08686f8
commit 5aeea6ae3e
2 changed files with 2 additions and 3 deletions

View File

@ -36,10 +36,9 @@ function function_exists {
# - ``FILES`` must be set to the cache dir # - ``FILES`` must be set to the cache dir
# - ``GLANCE_HOSTPORT`` # - ``GLANCE_HOSTPORT``
# #
# upload_image image-url glance-token # upload_image image-url
function upload_image { function upload_image {
local image_url=$1 local image_url=$1
local token=$2
local image image_fname image_name local image image_fname image_name

View File

@ -1225,7 +1225,7 @@ if is_service_enabled g-reg; then
fi fi
for image_url in ${IMAGE_URLS//,/ }; do for image_url in ${IMAGE_URLS//,/ }; do
upload_image $image_url $TOKEN upload_image $image_url
done done
fi fi