diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-10-19 08:26:42 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-10-19 08:26:42 +0000 |
commit | da6d3ef1588c979ea1a604d7c3c633928da4672f (patch) | |
tree | bbd0517f924c7e474fe3ac88b1c782926695da45 /cli | |
parent | 861ffb509ff4f2b103c5a156a712204fde1e6505 (diff) | |
parent | b6a48291841518b997cd9444df3f78e16f9a2654 (diff) |
Merge "Get OS_ env vars via os.environ"
Diffstat (limited to 'cli')
-rw-r--r-- | cli/commands/cli_os.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/commands/cli_os.py b/cli/commands/cli_os.py index 3748c212..2f3f329f 100644 --- a/cli/commands/cli_os.py +++ b/cli/commands/cli_os.py @@ -46,9 +46,9 @@ class CliOpenStack: exit(0) def show_credentials(self): - cmd = "env|grep OS_" - ft_utils.execute_command(cmd, verbose=False) - click.echo("") + for key, value in os.environ.items(): + if key.startswith('OS_'): + click.echo("{}={}".format(key, value)) def fetch_credentials(self): if os.path.isfile(RC_FILE): |