Fix scoped auth for non-admins (bug 1081192)

Change-Id: I6c92e026c5f46ac29947d6e0e94f571ccd48f032
This commit is contained in:
Dolph Mathews
2012-11-20 10:16:56 -06:00
parent 27f0c72117
commit e4ed1f39a0

View File

@@ -182,7 +182,8 @@ class Client(client.HTTPClient):
# to determine what to do. Otherwise, load up the service catalog
self.auth_token = self.auth_ref.auth_token
if self.auth_ref.scoped:
if self.management_url is None:
if self.management_url is None \
and self.auth_ref.management_url:
self.management_url = self.auth_ref.management_url[0]
self.tenant_name = self.auth_ref.tenant_name
self.tenant_id = self.auth_ref.tenant_id