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
This commit is contained in:
wanghao 2018-07-26 16:59:46 +08:00
parent 45eea410ba
commit bd644fec02
1 changed files with 2 additions and 2 deletions

View File

@ -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()