diff options
author | Jamie Lennox <jamielennox@redhat.com> | 2015-03-25 07:40:43 +1100 |
---|---|---|
committer | Jamie Lennox <jamielennox@redhat.com> | 2015-03-25 07:40:43 +1100 |
commit | ac19f0ab3b7b7525de5378b3de7f13a252a13f99 (patch) | |
tree | d09628220596c17611bcbf94282d53d9b2d6a205 | |
parent | e6c25ad380dc1feb0ed121d088151d9fde8cacef (diff) | |
download | django_openstack_auth-ac19f0ab3b7b7525de5378b3de7f13a252a13f99.tar.gz |
Expose keystone client version as a plugin property
I'd like to consider the openstack_auth.utils package private to DOA.
Expose the keystoneclient version on the plugin so that subclasses can
access it without going to openstack_auth.utils
Change-Id: Ib0b5047a3da100ff1407e79070c76b0f02406cb4
-rw-r--r-- | openstack_auth/plugin/base.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openstack_auth/plugin/base.py b/openstack_auth/plugin/base.py index fed0cc2..83eae09 100644 --- a/openstack_auth/plugin/base.py +++ b/openstack_auth/plugin/base.py @@ -14,6 +14,8 @@ import abc import six +from openstack_auth import utils + __all__ = ['BasePlugin'] @@ -42,3 +44,8 @@ class BasePlugin(object): :rtype: keystoneclient.auth.BaseAuthPlugin """ return None + + @property + def keystone_version(self): + """The Identity API version as specified in the settings file.""" + return utils.get_keystone_version() |