Add helper method to fetch service catalog
Grabbing the catalog is weird. OCC should help. Change-Id: I6e7176568311c1f0e644a8e8876f56c3e153d6e8
This commit is contained in:
parent
f6804f6b0d
commit
347fe82c92
|
@ -225,6 +225,10 @@ class CloudConfig(object):
|
|||
('os-client-config', os_client_config.__version__))
|
||||
return self._keystone_session
|
||||
|
||||
def get_service_catalog(self):
|
||||
"""Helper method to grab the service catalog."""
|
||||
return self._auth.get_access(self.get_session()).service_catalog
|
||||
|
||||
def get_session_client(self, service_key):
|
||||
"""Return a prepped requests adapter for a given service.
|
||||
|
||||
|
|
Loading…
Reference in New Issue