Replace os-client-config
It was deprecated[1] after the code was merged into openstacksdk[2]. [1] https://review.opendev.org/c/openstack/os-client-config/+/549307 [2] https://review.opendev.org/c/openstack/openstacksdk/+/518128 Change-Id: Ice8129a314a9132acde2116a36ac0936b25463cd Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
from keystoneauth1.exceptions import catalog
|
||||
from keystoneauth1 import session as ksa_session
|
||||
import os_client_config
|
||||
from openstack import config as occ
|
||||
from oslo_utils import importutils
|
||||
|
||||
from magnumclient.common import httpclient
|
||||
@@ -35,8 +35,8 @@ LEGACY_DEFAULT_SERVICE_TYPE = 'container'
|
||||
|
||||
|
||||
def _load_session(cloud=None, insecure=False, timeout=None, **kwargs):
|
||||
cloud_config = os_client_config.OpenStackConfig()
|
||||
cloud_config = cloud_config.get_one_cloud(
|
||||
cloud_config = occ.OpenStackConfig()
|
||||
cloud_config = cloud_config.get_one(
|
||||
cloud=cloud,
|
||||
verify=not insecure,
|
||||
**kwargs)
|
||||
|
||||
@@ -10,7 +10,7 @@ oslo.i18n>=3.15.3 # Apache-2.0
|
||||
oslo.log>=3.36.0 # Apache-2.0
|
||||
oslo.serialization!=2.19.1,>=2.18.0 # Apache-2.0
|
||||
oslo.utils>=3.33.0 # Apache-2.0
|
||||
os-client-config>=1.28.0 # Apache-2.0
|
||||
openstacksdk>=0.10.0 # Apache-2.0
|
||||
osc-lib>=1.8.0 # Apache-2.0
|
||||
PrettyTable>=0.7.2 # BSD
|
||||
cryptography>=3.0 # BSD/Apache-2.0
|
||||
|
||||
Reference in New Issue
Block a user