cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject git commit: cloudmonkey: url encode params when sending to mgmt server
Date Wed, 01 Oct 2014 14:50:17 GMT
Repository: cloudstack-cloudmonkey
Updated Branches:
  refs/heads/master 2b1b581e1 -> 6153b8f86


cloudmonkey: url encode params when sending to mgmt server

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/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 <rohit.yadav@shapeblue.com>
Authored: Wed Oct 1 16:49:55 2014 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
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:


Mime
View raw message