mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
Fix dangerous default args. (#29839)
This commit is contained in:
parent
5caa47feb9
commit
68aeaa58a8
50 changed files with 253 additions and 87 deletions
|
@ -284,8 +284,9 @@ class Base(with_metaclass(BaseMeta, object)):
|
|||
if key not in valid_attrs:
|
||||
raise AnsibleParserError("'%s' is not a valid attribute for a %s" % (key, self.__class__.__name__), obj=ds)
|
||||
|
||||
def validate(self, all_vars=dict()):
|
||||
def validate(self, all_vars=None):
|
||||
''' validation that is done at parse time, not load time '''
|
||||
all_vars = {} if all_vars is None else all_vars
|
||||
|
||||
if not self._validated:
|
||||
# walk all fields in the object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue