Repository: cloudstack-cloudmonkey Updated Branches: refs/heads/master c3cba3bd9 -> 715630aeb
cloudmonkey: mask sensitive data, tell users that it's hidden data Signed-off-by: Rohit Yadav <rohit.ya...@shapeblue.com> Project: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/commit/715630ae Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/tree/715630ae Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/diff/715630ae Branch: refs/heads/master Commit: 715630aebdcf18fbb2094893569a0c20fe7b65ab Parents: c3cba3b Author: Rohit Yadav <rohit.ya...@shapeblue.com> Authored: Thu Oct 30 16:09:58 2014 +0530 Committer: Rohit Yadav <rohit.ya...@shapeblue.com> Committed: Thu Oct 30 16:09:58 2014 +0530 ---------------------------------------------------------------------- cloudmonkey/cloudmonkey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/715630ae/cloudmonkey/cloudmonkey.py ---------------------------------------------------------------------- diff --git a/cloudmonkey/cloudmonkey.py b/cloudmonkey/cloudmonkey.py index 951aba3..f07fd67 100644 --- a/cloudmonkey/cloudmonkey.py +++ b/cloudmonkey/cloudmonkey.py @@ -542,7 +542,7 @@ class CloudMonkeyShell(cmd.Cmd, object): for option in default_profile.keys(): value = self.get_attr(option) if option in ["password", "apikey", "secretkey"] and value: - value = value[:2] + "XX" + value[4:6] + "YY..." + value = value[:2] + "XXX" + value[4:6] + "YYY...(hidden)" print " %s = %s" % (option, value) print