mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 10:51:24 -07:00
PEP8 E712 fixes (#21916)
This commit is contained in:
parent
5d39056379
commit
305c88700d
34 changed files with 103 additions and 123 deletions
|
@ -1718,7 +1718,7 @@ class AnsibleModule(object):
|
|||
def _set_defaults(self, pre=True):
|
||||
for (k,v) in self.argument_spec.items():
|
||||
default = v.get('default', None)
|
||||
if pre == True:
|
||||
if pre is True:
|
||||
# this prevents setting defaults on required items
|
||||
if default is not None and k not in self.params:
|
||||
self.params[k] = default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue