Browse code

exercise.sh was using wrong variable to generate token

Jesse Andrews authored on 2011/10/16 09:40:38
Showing 1 changed files
... ...
@@ -55,7 +55,7 @@ export NOVA_REGION_NAME=RegionOne
55 55
 
56 56
 # Get a token for clients that don't support service catalog
57 57
 # ==========================================================
58
-SERVICE_TOKEN=`curl -s -d  "{\"auth\":{\"passwordCredentials\": {\"username\": \"$NOVA_PROJECT_ID\", \"password\": \"$NOVA_API_KEY\"}}}" -H "Content-type: application/json" http://$HOST:5000/v2.0/tokens | python -c "import sys; import json; tok = json.loads(sys.stdin.read()); print tok['access']['token']['id'];"`
58
+SERVICE_TOKEN=`curl -s -d  "{\"auth\":{\"passwordCredentials\": {\"username\": \"$NOVA_USERNAME\", \"password\": \"$NOVA_API_KEY\"}}}" -H "Content-type: application/json" http://$HOST:5000/v2.0/tokens | python -c "import sys; import json; tok = json.loads(sys.stdin.read()); print tok['access']['token']['id'];"`
59 59
 
60 60
 # Launching a server
61 61
 # ==================