Browse code

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

Peter Stachowski authored on 2015/09/23 04:38:02
Showing 2 changed files
... ...
@@ -36,10 +36,9 @@ function function_exists {
36 36
 # - ``FILES`` must be set to the cache dir
37 37
 # - ``GLANCE_HOSTPORT``
38 38
 #
39
-# upload_image image-url glance-token
39
+# upload_image image-url
40 40
 function upload_image {
41 41
     local image_url=$1
42
-    local token=$2
43 42
 
44 43
     local image image_fname image_name
45 44
 
... ...
@@ -1225,7 +1225,7 @@ if is_service_enabled g-reg; then
1225 1225
     fi
1226 1226
 
1227 1227
     for image_url in ${IMAGE_URLS//,/ }; do
1228
-        upload_image $image_url $TOKEN
1228
+        upload_image $image_url
1229 1229
     done
1230 1230
 fi
1231 1231