Updated Branches: refs/heads/master 77e957c91 -> ac8ae3065
cli: fix argument parsing for set command, fixes unicode monkey char Signed-off-by: Rohit Yadav <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/ac8ae306 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/ac8ae306 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/ac8ae306 Branch: refs/heads/master Commit: ac8ae306589ef9d7c0675b3ee7a44bc7903ead09 Parents: 77e957c Author: Rohit Yadav <[email protected]> Authored: Tue Nov 6 17:59:53 2012 +0530 Committer: Rohit Yadav <[email protected]> Committed: Tue Nov 6 17:59:53 2012 +0530 ---------------------------------------------------------------------- tools/cli/cloudmonkey/cloudmonkey.py | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/ac8ae306/tools/cli/cloudmonkey/cloudmonkey.py ---------------------------------------------------------------------- diff --git a/tools/cli/cloudmonkey/cloudmonkey.py b/tools/cli/cloudmonkey/cloudmonkey.py index ea904b0..d980a21 100644 --- a/tools/cli/cloudmonkey/cloudmonkey.py +++ b/tools/cli/cloudmonkey/cloudmonkey.py @@ -54,7 +54,7 @@ completions = cloudstackAPI.__all__ class CloudStackShell(cmd.Cmd): - intro = ("â Apache CloudStack cloudmonkey " + __version__ + + intro = ("â Apache CloudStack ðµ cloudmonkey " + __version__ + ". Type help or ? to list commands.\n") ruler = "-" config_file = os.path.expanduser('~/.cloudmonkey_config') @@ -77,7 +77,7 @@ class CloudStackShell(cmd.Cmd): for key in self.config_fields.keys(): setattr(self, key, self.config_fields[key]) config = self.write_config() - print("ð Set your apiKey, secretKey, host, port, prompt, color," + print("ðµ Set your apiKey, secretKey, host, port, prompt, color," " log_file, history_file using the set command!") for key in self.config_fields.keys(): @@ -318,13 +318,14 @@ class CloudStackShell(cmd.Cmd): """ Set config for CloudStack CLI. Available options are: host, port, apiKey, secretKey, log_file, history_file + You may also edit your ~/.cloudmonkey_config instead of using set. Example: set host 192.168.56.2 - set prompt ð cloudmonkey> + set prompt ðµ cloudmonkey> set log_file /var/log/cloudmonkey.log """ - args = args.split(' ') + args = shlex.split(args.strip()) if len(args) == 2: key, value = args # Note: keys and fields should have same names
