Browse code

Merge "Fix create_userrc.sh script"

Jenkins authored on 2015/09/02 03:19:45
Showing 1 changed files
... ...
@@ -158,12 +158,12 @@ fi
158 158
 
159 159
 export -n SERVICE_TOKEN SERVICE_ENDPOINT OS_SERVICE_TOKEN OS_SERVICE_ENDPOINT
160 160
 
161
-EC2_URL=$(openstack endpoint show -f value -c publicurl ec2 || true)
161
+EC2_URL=$(openstack endpoint list --service ec2 --interface public --os-identity-api-version=3 -c URL -f value || true)
162 162
 if [[ -z $EC2_URL ]]; then
163 163
     EC2_URL=http://localhost:8773/
164 164
 fi
165 165
 
166
-S3_URL=$(openstack endpoint show -f value -c publicurl s3 || true)
166
+S3_URL=$(openstack endpoint list --service s3 --interface public --os-identity-api-version=3 -c URL -f value || true)
167 167
 if [[ -z $S3_URL ]]; then
168 168
     S3_URL=http://localhost:3333
169 169
 fi