Some quick fixes Using python os.path.join() to avoid forward/back slash problems Setting empty strings as defaults for username and password evn vars instead of None
Signed-off-by: Imesh Gunaratne <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/f49bebd4 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/f49bebd4 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/f49bebd4 Branch: refs/heads/stratos-4.1.x Commit: f49bebd454326c7d152ac160ab760c2088dfbc27 Parents: 1b76129 Author: Milindu Sanoj Kumarage <[email protected]> Authored: Sun Jun 14 13:15:33 2015 +0530 Committer: Imesh Gunaratne <[email protected]> Committed: Tue Oct 13 16:32:44 2015 +0530 ---------------------------------------------------------------------- .../src/main/python/cli/Configs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/f49bebd4/components/org.apache.stratos.python.cli/src/main/python/cli/Configs.py ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.python.cli/src/main/python/cli/Configs.py b/components/org.apache.stratos.python.cli/src/main/python/cli/Configs.py index f85b4cc..a665474 100644 --- a/components/org.apache.stratos.python.cli/src/main/python/cli/Configs.py +++ b/components/org.apache.stratos.python.cli/src/main/python/cli/Configs.py @@ -6,8 +6,8 @@ stratos_dir = "~/.stratos" log_file_name = "stratos-cli.log" stratos_dir_path = os.path.expanduser(stratos_dir) -log_file_path = stratos_dir_path+log_file_name +log_file_path = os.path.join(stratos_dir_path, log_file_name) -Stratos_url = os.getenv('STRATOS_URL', None) -Stratos_username = os.getenv('STRATOS_USERNAME', None) -Stratos_password = os.getenv('STRATOS_PASSWORD', None) \ No newline at end of file +stratos_url = os.getenv('STRATOS_URL', None) +stratos_username = os.getenv('STRATOS_USERNAME', "") +stratos_password = os.getenv('STRATOS_PASSWORD', "") \ No newline at end of file
