Add helper method to fetch service catalog

Grabbing the catalog is weird. OCC should help.

Change-Id: I6e7176568311c1f0e644a8e8876f56c3e153d6e8
This commit is contained in:
Monty Taylor 2017-05-08 07:20:53 -04:00
parent f6804f6b0d
commit 347fe82c92
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 4 additions and 0 deletions

View File

@ -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.