You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by al...@apache.org on 2012/07/25 01:11:42 UTC

[14/38] git commit: Using the CloudApi didn't work as parms and self were passed on as part of the request. Making parms a copy of the locals() dict will prevent it from being changed later on. RB: https://reviews.apache.org/r/5828/ Send-by: htrippaers@s

Using the CloudApi didn't work as parms and self were passed on as part
of the request. Making parms a copy of the locals() dict will prevent it
from being changed later on.
RB: https://reviews.apache.org/r/5828/
Send-by: htrippaers@schubergphilis.com


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

Branch: refs/heads/vpc
Commit: b7d4e5431794b2392f35e3736c63d1a8644e1b0c
Parents: 576d093
Author: Edison Su <su...@gmail.com>
Authored: Tue Jul 24 14:07:07 2012 -0700
Committer: Edison Su <su...@gmail.com>
Committed: Tue Jul 24 14:07:07 2012 -0700

----------------------------------------------------------------------
 cloud-cli/cloudapis/cloud.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b7d4e543/cloud-cli/cloudapis/cloud.py
----------------------------------------------------------------------
diff --git a/cloud-cli/cloudapis/cloud.py b/cloud-cli/cloudapis/cloud.py
index 856d811..34b3413 100644
--- a/cloud-cli/cloudapis/cloud.py
+++ b/cloud-cli/cloudapis/cloud.py
@@ -167,7 +167,7 @@ def load_dynamic_methods():
         code = """
         def %s(%s):
             %s
-            parms = locals()
+            parms = dict(locals())
             del parms["self"]
             for arg in %r:
                 if locals()[arg] is None: