Skip to content

Commit

Permalink
Using the CloudApi didn't work as parms and self were passed on as part
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
sudison committed Jul 24, 2012
1 parent 576d093 commit b7d4e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud-cli/cloudapis/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def getText(nodelist):
code = """
def %s(%s):
%s
parms = locals()
parms = dict(locals())
del parms["self"]
for arg in %r:
if locals()[arg] is None:
Expand Down

0 comments on commit b7d4e54

Please sign in to comment.