cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject git commit: cloudmonkey: strip strings in setting config options
Date Fri, 03 Oct 2014 12:15:40 GMT
Repository: cloudstack-cloudmonkey
Updated Branches:
  refs/heads/master 76bc92b59 -> 0ae940815


cloudmonkey: strip strings in setting config options

Signed-off-by: Rohit Yadav <rohit.yadav@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/0ae94081
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/tree/0ae94081
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/diff/0ae94081

Branch: refs/heads/master
Commit: 0ae9408150dd2feb91a3969c3509a18731351555
Parents: 76bc92b
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Fri Oct 3 14:14:42 2014 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Fri Oct 3 14:14:42 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/0ae94081/cloudmonkey/cloudmonkey.py
----------------------------------------------------------------------
diff --git a/cloudmonkey/cloudmonkey.py b/cloudmonkey/cloudmonkey.py
index 6801cef..2d88786 100644
--- a/cloudmonkey/cloudmonkey.py
+++ b/cloudmonkey/cloudmonkey.py
@@ -423,7 +423,7 @@ class CloudMonkeyShell(cmd.Cmd, object):
         set log_file /var/log/cloudmonkey.log
         """
         args = args.strip().partition(" ")
-        key, value = (args[0], args[2])
+        key, value = (args[0].strip(), args[2].strip())
         if not key:
             return
         if not value:
@@ -441,7 +441,7 @@ class CloudMonkeyShell(cmd.Cmd, object):
         read_config(self.get_attr, self.set_attr, self.config_file)
         self.init_credential_store()
         if key.strip() == 'profile':
-            print "\nLoaded server profile '%s' with options:" % key
+            print "\nLoaded server profile '%s' with options:" % value
             for option in default_profile.keys():
                 print "    %s = %s" % (option, self.get_attr(option))
             print


Mime
View raw message