cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [3/3] cloudstack-cloudmonkey git commit: FIX split for paramter=value where value could be anything. An example case where value can contain the "=" sign: registerSSHKeyPair (publickey)
Date Fri, 22 May 2015 17:03:21 GMT
FIX split for paramter=value where value could be anything. An example case where value can
contain the "=" sign: registerSSHKeyPair (publickey)

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/830858a3
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/tree/830858a3
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/diff/830858a3

Branch: refs/heads/master
Commit: 830858a35a11f62bddbae4fda1c0f1b5c389caed
Parents: a78a0d2
Author: Nuno Tavares <n.tavares@tech.leaseweb.com>
Authored: Fri May 22 16:00:43 2015 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Fri May 22 18:01:33 2015 +0100

----------------------------------------------------------------------
 cloudmonkey/cloudmonkey.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/830858a3/cloudmonkey/cloudmonkey.py
----------------------------------------------------------------------
diff --git a/cloudmonkey/cloudmonkey.py b/cloudmonkey/cloudmonkey.py
index b8b4e77..a305c36 100644
--- a/cloudmonkey/cloudmonkey.py
+++ b/cloudmonkey/cloudmonkey.py
@@ -799,7 +799,7 @@ def main():
         shell.set_attr("color", "false")
         commands = []
         for command in args.commands:
-            split_command = command.split("=")
+            split_command = command.split("=", 1)
             if len(split_command) > 1:
                 key = split_command[0]
                 value = split_command[1]


Mime
View raw message