From 23ab18efdf3fba068e0ebd7d32d3ad3a2813bcff Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Thu, 12 Feb 2015 08:29:12 -0500 Subject: [PATCH] Add service_catalog property Add a property for getting the service catalog. Although most of the time a user should not need to grab this directly, it can be invaluable in debugging situations - and is a public method because there is an ansible module that wants to directly expose it. Change-Id: If54cb94fc9a80f1dabe90b46ed2f62d8fcb8460f --- shade/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shade/__init__.py b/shade/__init__.py index 15970fa57..e8daf1e03 100644 --- a/shade/__init__.py +++ b/shade/__init__.py @@ -228,6 +228,11 @@ class OpenStackCloud(object): "Error authenticating to the keystone: %s " % e.message) return self._keystone_session + @property + def service_catalog(self): + return self.keystone_session.auth.get_access( + self.keystone_session).service_catalog.get_data() + @property def auth_token(self): if not self._auth_token: