Add queens support
This patch adds initial support for queens.
Change-Id: Icc6022115bbc6ab1d2422a18b3708394a649cbba
Related-Prod: PROD-20387
diff --git a/_modules/barbicanv1/common.py b/_modules/barbicanv1/common.py
index dd32025..83fd6ff 100644
--- a/_modules/barbicanv1/common.py
+++ b/_modules/barbicanv1/common.py
@@ -48,12 +48,15 @@
def _get_raw_client(cloud_name):
service_type = 'key-manager'
- adapter = os_client_config.make_rest_client(service_type,
- cloud=cloud_name)
+ config = os_client_config.OpenStackConfig()
+ cloud = config.get_one_cloud(cloud_name)
+ adapter = cloud.get_session_client(service_type)
+ adapter.version = '1'
try:
access_info = adapter.session.auth.get_access(adapter.session)
endpoints = access_info.service_catalog.get_endpoints()
- except (AttributeError, ValueError):
+ except (AttributeError, ValueError) as exc:
+ log.exception('%s' % exc)
e = NoAuthPluginConfigured()
log.exception('%s' % e)
raise e