diff options
author | Julien Danjou <julien@danjou.info> | 2013-01-24 17:46:29 +0100 |
---|---|---|
committer | Julien Danjou <julien@danjou.info> | 2013-06-11 10:00:13 +0200 |
commit | a56ce5817f814531151b2c4bc6da78f4c2b0ed02 (patch) | |
tree | 42a0362ac38558933fcaede55e81b6295f2e62f1 /keystoneclient/client.py | |
parent | 2ec2e7ee31a9a7305d524bceaf2c10f89ef27f02 (diff) | |
download | python-keystoneclient-a56ce5817f814531151b2c4bc6da78f4c2b0ed02.tar.gz |
Use AuthRef for some client fields
This tackles some TODO items left over.
Change-Id: Ib062744acbf56f05d09857d244b78b35c0ef4d39
Signed-off-by: Julien Danjou <julien@danjou.info>
Diffstat (limited to 'keystoneclient/client.py')
-rw-r--r-- | keystoneclient/client.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/keystoneclient/client.py b/keystoneclient/client.py index 5b2f125..ae91f89 100644 --- a/keystoneclient/client.py +++ b/keystoneclient/client.py @@ -328,6 +328,15 @@ class HTTPClient(object): def serialize(self, entity): return json.dumps(entity) + @property + def service_catalog(self): + """Returns this client's service catalog.""" + return self.auth_ref.service_catalog + + def has_service_catalog(self): + """Returns True if this client provides a service catalog.""" + return self.auth_ref.has_service_catalog() + def request(self, url, method, **kwargs): """ Send an http request with the specified characteristics. |