From ac19f0ab3b7b7525de5378b3de7f13a252a13f99 Mon Sep 17 00:00:00 2001 From: Jamie Lennox Date: Wed, 25 Mar 2015 07:40:43 +1100 Subject: 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 --- openstack_auth/plugin/base.py | 7 +++++++ 1 file changed, 7 insertions(+) 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() -- cgit v1.2.1