Repository: cloudstack-cloudmonkey
Updated Branches:
  refs/heads/master 2b1b581e1 -> 6153b8f86


cloudmonkey: url encode params when sending to mgmt server

Signed-off-by: Rohit Yadav <[email protected]>


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

Branch: refs/heads/master
Commit: 6153b8f865502cfe285c23cf0e2ddcc022fa6144
Parents: 2b1b581
Author: Rohit Yadav <[email protected]>
Authored: Wed Oct 1 16:49:55 2014 +0200
Committer: Rohit Yadav <[email protected]>
Committed: Wed Oct 1 16:49:55 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/6153b8f8/cloudmonkey/cloudmonkey.py
----------------------------------------------------------------------
diff --git a/cloudmonkey/cloudmonkey.py b/cloudmonkey/cloudmonkey.py
index ca5b8db..549d653 100644
--- a/cloudmonkey/cloudmonkey.py
+++ b/cloudmonkey/cloudmonkey.py
@@ -29,6 +29,7 @@ try:
     import sys
     import types
     import copy
+    import urllib
 
     from cachemaker import loadcache, savecache, monkeycache, splitverbsubject
     from config import __version__, __description__, __projecturl__
@@ -296,7 +297,7 @@ class CloudMonkeyShell(cmd.Cmd, object):
             args.append(next_val.replace('\x00', ''))
 
         args_dict = dict(map(lambda x: [x.partition("=")[0],
-                                        x.partition("=")[2]],
+                                        urllib.quote(x.partition("=")[2])],
                              args[1:])[x] for x in range(len(args) - 1))
         field_filter = None
         if 'filter' in args_dict:

Reply via email to