Skip to content

Commit b7d4e54

Browse files
committed
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
1 parent 576d093 commit b7d4e54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cloud-cli/cloudapis/cloud.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def getText(nodelist):
167167
code = """
168168
def %s(%s):
169169
%s
170-
parms = locals()
170+
parms = dict(locals())
171171
del parms["self"]
172172
for arg in %r:
173173
if locals()[arg] is None:

0 commit comments

Comments
 (0)