Merge "Add configuration show command"
This commit is contained in:
commit
b96eef3307
@ -15,6 +15,7 @@
|
||||
|
||||
"""Manage access to the clients, including authenticating when needed."""
|
||||
|
||||
import copy
|
||||
import logging
|
||||
import pkg_resources
|
||||
import sys
|
||||
@ -203,6 +204,9 @@ class ClientManager(object):
|
||||
interface=interface)
|
||||
return endpoint
|
||||
|
||||
def get_configuration(self):
|
||||
return copy.deepcopy(self._cli_options.config)
|
||||
|
||||
|
||||
# Plugin Support
|
||||
|
||||
|
@ -28,6 +28,7 @@ PASSWORD = "scratchy"
|
||||
PROJECT_NAME = "poochie"
|
||||
REGION_NAME = "richie"
|
||||
INTERFACE = "catchy"
|
||||
VERSION = "3"
|
||||
|
||||
TEST_RESPONSE_DICT = fixture.V2Token(token_id=AUTH_TOKEN,
|
||||
user_name=USERNAME)
|
||||
@ -102,6 +103,17 @@ class FakeClientManager(object):
|
||||
self.auth_ref = None
|
||||
self.auth_plugin_name = None
|
||||
|
||||
def get_configuration(self):
|
||||
return {
|
||||
'auth': {
|
||||
'username': USERNAME,
|
||||
'password': PASSWORD,
|
||||
'token': AUTH_TOKEN,
|
||||
},
|
||||
'region': REGION_NAME,
|
||||
'identity_api_version': VERSION,
|
||||
}
|
||||
|
||||
|
||||
class FakeModule(object):
|
||||
def __init__(self, name, version):
|
||||
|
@ -44,6 +44,7 @@ openstack.cli.base =
|
||||
volume = openstackclient.volume.client
|
||||
|
||||
openstack.common =
|
||||
configuration_show = openstackclient.common.configuration:ShowConfiguration
|
||||
extension_list = openstackclient.common.extension:ListExtension
|
||||
limits_show = openstackclient.common.limits:ShowLimits
|
||||
quota_set = openstackclient.common.quota:SetQuota
|
||||
|
Loading…
x
Reference in New Issue
Block a user