From 46b84a6ef713f939ce03b5e613d133ddbc70338f Mon Sep 17 00:00:00 2001 From: Phillip Kent Date: Sat, 19 Dec 2015 15:47:56 +0000 Subject: [PATCH] Update requester.py urllib.quote_plus() requires the option safe="*" (that is, the * character is not encoded) to be consistent with CloudStack's internal encoder/decoder. Without this, API calls containing the * character will fail API authentication. --- cloudmonkey/requester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudmonkey/requester.py b/cloudmonkey/requester.py index cf082aa9..f8c038d1 100644 --- a/cloudmonkey/requester.py +++ b/cloudmonkey/requester.py @@ -202,7 +202,7 @@ def sign_request(params, secret_key): hash_str = "&".join( ["=".join( [r[0].lower(), - urllib.quote_plus(str(r[1])).lower() + urllib.quote_plus(str(r[1]), safe="*").lower() .replace("+", "%20").replace("%3A", ":")] ) for r in request] )