mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Fix dangerous default args. (#29839)
This commit is contained in:
@@ -48,7 +48,9 @@ class FakeModule(object):
|
||||
else:
|
||||
return alt
|
||||
|
||||
def __init__(self, data={}):
|
||||
def __init__(self, data=None):
|
||||
data = {} if data is None else data
|
||||
|
||||
self.params = FakeModule.Params()
|
||||
self.params.data = data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user