Fixing resetting of variables and adding unit test for condition

This commit is contained in:
John Westcott IV
2020-10-13 16:46:05 -04:00
parent 1ecd38a4ee
commit f0449adcf8
2 changed files with 48 additions and 1 deletions

View File

@@ -436,7 +436,7 @@ def main():
'become_enabled', 'diff_mode', 'allow_simultaneous', 'custom_virtualenv', 'job_slice_count', 'webhook_service',
):
field_val = module.params.get(field_name)
if field_val:
if field_val is not None:
new_fields[field_name] = field_val
# Special treatment of extra_vars parameter