You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2013/01/07 02:30:32 UTC

git commit: cli: Cosmetic fix for prompt of cloudmonkey

Updated Branches:
  refs/heads/master 7235ba35a -> c13f0199f


cli: Cosmetic fix for prompt of cloudmonkey

Signed-off-by: Rohit Yadav <bh...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/c13f0199
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/c13f0199
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/c13f0199

Branch: refs/heads/master
Commit: c13f0199f47d4e6967524fbcb8eb051f390c8726
Parents: 7235ba3
Author: Rohit Yadav <bh...@apache.org>
Authored: Sun Jan 6 17:30:00 2013 -0800
Committer: Rohit Yadav <bh...@apache.org>
Committed: Sun Jan 6 17:30:00 2013 -0800

----------------------------------------------------------------------
 tools/cli/cloudmonkey/cloudmonkey.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/c13f0199/tools/cli/cloudmonkey/cloudmonkey.py
----------------------------------------------------------------------
diff --git a/tools/cli/cloudmonkey/cloudmonkey.py b/tools/cli/cloudmonkey/cloudmonkey.py
index a573972..339a201 100644
--- a/tools/cli/cloudmonkey/cloudmonkey.py
+++ b/tools/cli/cloudmonkey/cloudmonkey.py
@@ -95,7 +95,7 @@ class CloudMonkeyShell(cmd.Cmd, object):
                 print "Please fix `%s` config in %s" % (key, self.config_file)
                 sys.exit()
 
-        self.prompt += " "  # Cosmetic fix for prompt
+        self.prompt = self.prompt.strip() + " "  # Cosmetic fix for prompt
         logging.basicConfig(filename=self.log_file,
                             level=logging.DEBUG, format=log_fmt)
         logger.debug("Loaded config fields:\n%s" % self.config_fields)
@@ -421,7 +421,7 @@ class CloudMonkeyShell(cmd.Cmd, object):
         args = args.strip().partition(" ")
         key, value = (args[0], args[2])
         setattr(self, key, value)  # keys and attributes should have same names
-        self.prompt += " "         # prompt fix
+        self.prompt = self.prompt.strip() + " " # prompt fix
         self.write_config()
 
     def complete_set(self, text, line, begidx, endidx):