cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject git commit: updated refs/heads/master to 7bff1d0
Date Tue, 16 Apr 2013 05:13:28 GMT
Updated Branches:
  refs/heads/master 51b4ee26e -> 7bff1d08f


CLOUDSTACK-2020: Make cli's requester unicode friendly

Fixed list processing that uses lambdas to use x.lower() assuming x is string,
and not forced/caster str.lower(obj)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>


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

Branch: refs/heads/master
Commit: 7bff1d08f4f331301fdefb0f70468e8436392b96
Parents: 51b4ee2
Author: Rohit Yadav <bhaisaab@apache.org>
Authored: Tue Apr 16 10:40:02 2013 +0530
Committer: Rohit Yadav <bhaisaab@apache.org>
Committed: Tue Apr 16 10:41:21 2013 +0530

----------------------------------------------------------------------
 tools/cli/cloudmonkey/requester.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7bff1d08/tools/cli/cloudmonkey/requester.py
----------------------------------------------------------------------
diff --git a/tools/cli/cloudmonkey/requester.py b/tools/cli/cloudmonkey/requester.py
index 88967fe..d2dae6d 100644
--- a/tools/cli/cloudmonkey/requester.py
+++ b/tools/cli/cloudmonkey/requester.py
@@ -61,11 +61,11 @@ def make_request(command, args, logger, host, port,
     args["apiKey"] = apikey
     args["response"] = "json"
     request = zip(args.keys(), args.values())
-    request.sort(key=lambda x: str.lower(x[0]))
+    request.sort(key=lambda x: x[0].lower())
 
     request_url = "&".join(["=".join([r[0], urllib.quote_plus(str(r[1]))])
                            for r in request])
-    hashStr = "&".join(["=".join([str.lower(r[0]),
+    hashStr = "&".join(["=".join([r[0].lower(),
                        str.lower(urllib.quote_plus(str(r[1]))).replace("+",
                        "%20")]) for r in request])
 


Mime
View raw message