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
This commit is contained in:
wanghao 2018-07-25 11:32:27 +08:00
parent e8007a68e4
commit 792a6d0ff1

View File

@ -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: