diff options
| author | TerryHowe <terrylhowe@gmail.com> | 2015-07-19 12:15:04 -0600 |
|---|---|---|
| committer | TerryHowe <terrylhowe@gmail.com> | 2015-07-23 13:00:59 -0600 |
| commit | 43942871a9d1515b6ed261e5093001850c2232be (patch) | |
| tree | 731c37a612a068fb5a7f7855d8247cae6c86c62a /openstackclient/common/clientmanager.py | |
| parent | 64334c0dc95ed5cdb10fefe5100d5a1e486132f1 (diff) | |
| download | python-openstackclient-43942871a9d1515b6ed261e5093001850c2232be.tar.gz | |
Add configuration show command
Create a `configuration show` command that displays the current
configuration of the CLI. Different configurations can be
displayed using options such as --os-cloud. Passwords and
tokens are redacted by default unless the --unmask
option is specified.
Closes-Bug: #1476729
Change-Id: I0792365d0c5fa526cd09c0ed88c6bb1e2cb813a7
Diffstat (limited to 'openstackclient/common/clientmanager.py')
| -rw-r--r-- | openstackclient/common/clientmanager.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openstackclient/common/clientmanager.py b/openstackclient/common/clientmanager.py index 742509e4..d8e7e1a9 100644 --- a/openstackclient/common/clientmanager.py +++ b/openstackclient/common/clientmanager.py @@ -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 |
