set the management_url from the service_catalog

This commit is contained in:
Jesse Andrews
2011-12-18 21:26:38 -08:00
parent caad71d1b7
commit 74bdba290b

View File

@@ -72,6 +72,7 @@ class Client(client.HTTPClient):
# get away with lazy auth. Otherwise auth immediately.
if endpoint is None:
self.authenticate()
self.management_url = self.service_catalog.url_for(endpoint_type='adminURL')
else:
self.management_url = endpoint