From 792a6d0ff1587ef103a2f3be92bc6e283fa5d965 Mon Sep 17 00:00:00 2001 From: wanghao Date: Wed, 25 Jul 2018 11:32:27 +0800 Subject: [PATCH] Replace os-client-config to openstacksdk 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: I19bee5f276dcdd9a885fd99b6b656647e28ba139 --- zaqarclient/tests/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zaqarclient/tests/base.py b/zaqarclient/tests/base.py index 33af6579..9af90ec8 100644 --- a/zaqarclient/tests/base.py +++ b/zaqarclient/tests/base.py @@ -16,7 +16,7 @@ import os import fixtures -import os_client_config +import openstack.config from six.moves import urllib_parse import testtools @@ -65,7 +65,7 @@ class TestBase(testtools.TestCase): has admin privs. This function will default to getting the devstack-admin cloud as that is the current expected behavior. """ - os_cfg = os_client_config.OpenStackConfig() + os_cfg = openstack.config.OpenStackConfig() try: found = os_cfg.get_one_cloud(cloud=cloud) except Exception: