aboutsummaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-10-19 08:26:42 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-10-19 08:26:42 +0000
commitda6d3ef1588c979ea1a604d7c3c633928da4672f (patch)
treebbd0517f924c7e474fe3ac88b1c782926695da45 /cli
parent861ffb509ff4f2b103c5a156a712204fde1e6505 (diff)
parentb6a48291841518b997cd9444df3f78e16f9a2654 (diff)
Merge "Get OS_ env vars via os.environ"
Diffstat (limited to 'cli')
-rw-r--r--cli/commands/cli_os.py6
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):