diff options
Diffstat (limited to 'cli/commands')
-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 4324ae44d..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, exit_on_error=False, 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): |