mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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
This commit is contained in:
parent
576d093e9c
commit
b7d4e54317
@ -167,7 +167,7 @@ def load_dynamic_methods():
|
|||||||
code = """
|
code = """
|
||||||
def %s(%s):
|
def %s(%s):
|
||||||
%s
|
%s
|
||||||
parms = locals()
|
parms = dict(locals())
|
||||||
del parms["self"]
|
del parms["self"]
|
||||||
for arg in %r:
|
for arg in %r:
|
||||||
if locals()[arg] is None:
|
if locals()[arg] is None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user