diff --git a/requirements.txt b/requirements.txt index d0b1cbc..8afc74a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,6 +9,6 @@ oslo.i18n>=2.1.0 # Apache-2.0 oslo.utils>=3.18.0 # Apache-2.0 pbr>=1.8 # Apache-2.0 PrettyTable<0.8,>=0.7.1 # BSD -python-keystoneclient>=3.8.0 # Apache-2.0 +keystoneauth1>=2.16.0 # Apache-2.0 six>=1.9.0 # MIT PyYAML>=3.10.0 # MIT diff --git a/watcherclient/shell.py b/watcherclient/shell.py index 2f631ab..cd93204 100644 --- a/watcherclient/shell.py +++ b/watcherclient/shell.py @@ -25,7 +25,7 @@ from cliff import command from cliff import commandmanager from cliff import complete from cliff import help as cli_help -from keystoneclient import session +from keystoneauth1 import loading from osc_lib import logs from osc_lib import utils @@ -165,7 +165,7 @@ class WatcherShell(app.App): "Service Catalog.") parser.epilog = ('See "watcher help COMMAND" for help ' 'on a specific command.') - session.Session.register_cli_options(parser) + loading.register_session_argparse_arguments(parser) return parser def configure_logging(self): diff --git a/watcherclient/tests/keystone_client_fixtures.py b/watcherclient/tests/keystone_client_fixtures.py index a175d7f..562de76 100644 --- a/watcherclient/tests/keystone_client_fixtures.py +++ b/watcherclient/tests/keystone_client_fixtures.py @@ -13,8 +13,8 @@ import json from oslo_utils import uuidutils -from keystoneclient.fixture import v2 as ks_v2_fixture -from keystoneclient.fixture import v3 as ks_v3_fixture +from keystoneauth1.fixture import v2 as ks_v2_fixture +from keystoneauth1.fixture import v3 as ks_v3_fixture # these are copied from python-keystoneclient tests BASE_HOST = 'http://keystone.example.com'