From bd644fec02ec592b8c79828583c689b28dd61675 Mon Sep 17 00:00:00 2001 From: wanghao Date: Thu, 26 Jul 2018 16:59:46 +0800 Subject: [PATCH] Update os_client_config to openstack.config Since now os-client-config has been superceded by openstacksdk[1]. So need to replace the os-client-config in zaqarclient to slove the issue that 'No module named os_client_config'. [1]:https://docs.openstack.org/os-client-config/latest/ Change-Id: Icd133a467dea36f60d00f75a1113fcdf8e7ac76b --- zaqar/bench/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zaqar/bench/helpers.py b/zaqar/bench/helpers.py index 2117008e4..6718018bd 100644 --- a/zaqar/bench/helpers.py +++ b/zaqar/bench/helpers.py @@ -16,7 +16,7 @@ import os import sys -import os_client_config +import openstack.config from zaqarclient.queues import client from zaqar.bench import config @@ -40,7 +40,7 @@ def _get_credential_args(): credentials for 'devstack' cloud. If no 'devstack' cloud found, throws an error and stops the application. """ - os_cfg = os_client_config.OpenStackConfig() + os_cfg = openstack.config.OpenStackConfig() cloud = os_cfg.get_one_cloud() cred_args = cloud.get_auth_args()