mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 10:51:24 -07:00
Override params from environment variables, if set.
Fix a typo while I'm in the area. Handle having None set in module.params more intelligently
This commit is contained in:
parent
eab4ce19f3
commit
e4e913b331
3 changed files with 27 additions and 5 deletions
|
@ -1387,6 +1387,8 @@ class AnsibleModule(object):
|
|||
wanted = 'str'
|
||||
|
||||
value = self.params[k]
|
||||
if value is None:
|
||||
continue
|
||||
|
||||
try:
|
||||
type_checker = self._CHECK_ARGUMENT_TYPES_DISPATCHER[wanted]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue