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: I47f1ebf037d2e93bf8901d1c9e21b75532c93918 Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
@@ -18,7 +18,7 @@ from sys import argv
|
||||
|
||||
import cliff.app
|
||||
from cliff.commandmanager import CommandManager
|
||||
import os_client_config
|
||||
from openstack import config as occ
|
||||
from oslo_log import log
|
||||
|
||||
from cloudkittyclient import client
|
||||
@@ -90,7 +90,7 @@ class CloudKittyShell(cliff.app.App):
|
||||
|
||||
def __init__(self, args):
|
||||
self._args = args
|
||||
self.cloud_config = os_client_config.OpenStackConfig()
|
||||
self.cloud_config = occ.OpenStackConfig()
|
||||
super(CloudKittyShell, self).__init__(
|
||||
description='CloudKitty CLI client',
|
||||
version=utils.get_version(),
|
||||
@@ -128,7 +128,7 @@ class CloudKittyShell(cliff.app.App):
|
||||
@property
|
||||
def client(self):
|
||||
if self._client is None:
|
||||
self.cloud = self.cloud_config.get_one_cloud(
|
||||
self.cloud = self.cloud_config.get_one(
|
||||
argparse=self.options)
|
||||
session = self.cloud.get_session()
|
||||
adapter_options = dict(
|
||||
|
||||
@@ -9,5 +9,5 @@ oslo.utils>=4.7.0 # Apache-2.0
|
||||
oslo.log>=4.4.0 # Apache-2.0
|
||||
PyYAML>=5.3.1 # MIT
|
||||
jsonpath-rw-ext>=1.2.0 # Apache-2.0
|
||||
os-client-config>=2.1.0 # Apache-2.0
|
||||
openstacksdk>=0.10.0 # Apache-2.0
|
||||
osc-lib>=2.3.0 # Apache-2.0
|
||||
|
||||
Reference in New Issue
Block a user