cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject cloudstack-cloudmonkey git commit: CLOUDSTACK-7935: keep colons in the request to ACS
Date Tue, 18 Nov 2014 13:58:27 GMT
Repository: cloudstack-cloudmonkey
Updated Branches:
  refs/heads/master 3ce218da7 -> 18feb8074


CLOUDSTACK-7935: keep colons in the request to ACS

ACS does not decode %3A to colon and thus some requests break
This closes #1

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

Branch: refs/heads/master
Commit: 18feb8074e47042470185dc74744dc075e43a7b6
Parents: 3ce218d
Author: Remi Bergsma <github@remi.nl>
Authored: Tue Nov 18 12:00:12 2014 +0100
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Tue Nov 18 19:27:51 2014 +0530

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


http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/18feb807/cloudmonkey/requester.py
----------------------------------------------------------------------
diff --git a/cloudmonkey/requester.py b/cloudmonkey/requester.py
index 3ac60d5..13dce20 100644
--- a/cloudmonkey/requester.py
+++ b/cloudmonkey/requester.py
@@ -197,7 +197,7 @@ def make_request(command, args, logger, url, credentials, expires,
         hash_str = "&".join(
             ["=".join(
                 [r[0].lower(),
-                 urllib.quote_plus(str(r[1])).lower().replace("+", "%20")]
+                 urllib.quote_plus(str(r[1])).lower().replace("+", "%20").replace("%3A",":")]
             ) for r in request]
         )
         return base64.encodestring(hmac.new(secret_key, hash_str,


Mime
View raw message