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:
Nathaniel Case 2016-03-24 15:49:03 -04:00
parent eab4ce19f3
commit e4e913b331
3 changed files with 27 additions and 5 deletions

View file

@ -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]