in most recent keystone, 'identity' is used as a service name, rather than 'keystone'

This commit is contained in:
Anthony Young
2011-07-18 11:41:12 -07:00
parent 8e39b0a4b1
commit 3bab40b770

View File

@@ -467,7 +467,7 @@ def token_info(request, token):
"X_AUTH_TOKEN": settings.OPENSTACK_ADMIN_TOKEN,
"Accept": "text/json"}
o = urlparse(token.serviceCatalog['keystone'][0]['adminURL'])
o = urlparse(token.serviceCatalog['identity'][0]['adminURL'])
conn = httplib.HTTPConnection(o.hostname, o.port)
conn.request("GET", "/v2.0/tokens/%s" % token.id, headers=hdrs)
response = conn.getresponse()