Fix to handle parameters with Boolean values correctly

* Addresses the issue #10057

Signed-off-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
Hideki Saito
2021-05-05 14:08:05 +09:00
parent 9ea6696bf9
commit 70f9d6f015
2 changed files with 19 additions and 1 deletions

View File

@@ -751,7 +751,7 @@ def main():
'webhook_service',
):
field_val = module.params.get(field_name)
if field_val:
if field_val is not None:
new_fields[field_name] = field_val
if 'extra_vars' in new_fields: