Python CLI - Minor fix to debug option
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/3a6d92d9 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/3a6d92d9 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/3a6d92d9 Branch: refs/heads/stratos-4.1.x Commit: 3a6d92d9ee90f1945831d6c5127525ce8cadd255 Parents: afc448c Author: Chamila de Alwis <[email protected]> Authored: Wed Oct 14 01:05:36 2015 +0530 Committer: Chamila de Alwis <[email protected]> Committed: Wed Oct 14 01:05:36 2015 +0530 ---------------------------------------------------------------------- .../org.apache.stratos.python.cli/src/main/python/cli/Main.py | 3 +-- .../org.apache.stratos.python.cli/src/main/python/cli/Stratos.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/3a6d92d9/components/org.apache.stratos.python.cli/src/main/python/cli/Main.py ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.python.cli/src/main/python/cli/Main.py b/components/org.apache.stratos.python.cli/src/main/python/cli/Main.py index c4ad036..2b9b649 100755 --- a/components/org.apache.stratos.python.cli/src/main/python/cli/Main.py +++ b/components/org.apache.stratos.python.cli/src/main/python/cli/Main.py @@ -40,8 +40,7 @@ def prompt_for_credentials(): if Configs.stratos_password is "": Configs.stratos_password = getpass.getpass("Password: ") if Stratos.authenticate(): - print("Successfully authenticated.") - print("Connected to Stratos [%s]" % Configs.stratos_url) + print("Successfully authenticated [%s]" % Configs.stratos_url) else: print("Could not authenticate") exit() http://git-wip-us.apache.org/repos/asf/stratos/blob/3a6d92d9/components/org.apache.stratos.python.cli/src/main/python/cli/Stratos.py ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.python.cli/src/main/python/cli/Stratos.py b/components/org.apache.stratos.python.cli/src/main/python/cli/Stratos.py index fa30679..ad30186 100755 --- a/components/org.apache.stratos.python.cli/src/main/python/cli/Stratos.py +++ b/components/org.apache.stratos.python.cli/src/main/python/cli/Stratos.py @@ -467,7 +467,7 @@ class Stratos: @staticmethod def response(r): - if Configs.debug_cli: + if "False" not in Configs.debug_cli: # print responses if debug is turned on print(r) print(r.text)
