From b7d4e5431794b2392f35e3736c63d1a8644e1b0c Mon Sep 17 00:00:00 2001 From: Edison Su Date: Tue, 24 Jul 2012 14:07:07 -0700 Subject: [PATCH] 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 --- cloud-cli/cloudapis/cloud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud-cli/cloudapis/cloud.py b/cloud-cli/cloudapis/cloud.py index 856d81177d3..34b3413ce5e 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: