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:
parent
45eea410ba
commit
bd644fec02
@ -16,7 +16,7 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import os_client_config
|
import openstack.config
|
||||||
from zaqarclient.queues import client
|
from zaqarclient.queues import client
|
||||||
|
|
||||||
from zaqar.bench import config
|
from zaqar.bench import config
|
||||||
@ -40,7 +40,7 @@ def _get_credential_args():
|
|||||||
credentials for 'devstack' cloud. If no 'devstack' cloud found, throws
|
credentials for 'devstack' cloud. If no 'devstack' cloud found, throws
|
||||||
an error and stops the application.
|
an error and stops the application.
|
||||||
"""
|
"""
|
||||||
os_cfg = os_client_config.OpenStackConfig()
|
os_cfg = openstack.config.OpenStackConfig()
|
||||||
|
|
||||||
cloud = os_cfg.get_one_cloud()
|
cloud = os_cfg.get_one_cloud()
|
||||||
cred_args = cloud.get_auth_args()
|
cred_args = cloud.get_auth_args()
|
||||||
|
Loading…
Reference in New Issue
Block a user