aboutsummaryrefslogtreecommitdiffstats
path: root/cli/commands
diff options
context:
space:
mode:
Diffstat (limited to 'cli/commands')
-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 3748c212a..2f3f329f3 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):