Updated Branches: refs/heads/master 576d093e9 -> b7d4e5431
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: [email protected] 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/master Commit: b7d4e5431794b2392f35e3736c63d1a8644e1b0c Parents: 576d093 Author: Edison Su <[email protected]> Authored: Tue Jul 24 14:07:07 2012 -0700 Committer: Edison Su <[email protected]> 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:
