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:
Takashi Kajinami
2025-07-01 01:07:42 +09:00
parent c4b3f4a9cf
commit eb0db0cd81
2 changed files with 4 additions and 4 deletions

View File

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

View File

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