Browse code

use HOST_IP as in stack.sh

Jesse Andrews authored on 2011/10/25 05:43:04
Showing 1 changed files
... ...
@@ -29,7 +29,7 @@ source ./openrc
29 29
 # returns a token and catalog of endpoints.  We use python to parse the token
30 30
 # and save it.
31 31
 
32
-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'];"`
32
+TOKEN=`curl -s -d  "{\"auth\":{\"passwordCredentials\": {\"username\": \"$NOVA_USERNAME\", \"password\": \"$NOVA_API_KEY\"}}}" -H "Content-type: application/json" http://$HOST_IP:5000/v2.0/tokens | python -c "import sys; import json; tok = json.loads(sys.stdin.read()); print tok['access']['token']['id'];"`
33 33
 
34 34
 # Launching a server
35 35
 # ==================