idoveridegroup: Use module.params_get_type

Use the commom parameter type handling method for parameters that accept
a value or an empty string.
This commit is contained in:
Rafael Guterres Jeffman
2023-09-18 12:44:45 -03:00
parent bc694b722c
commit 34973c04c6
2 changed files with 2 additions and 15 deletions

View File

@@ -476,7 +476,7 @@ def main():
params = {}
for x in field_map:
val = ansible_module.params_get(
x, allow_empty_list_item=(x in allow_empty_list_item))
x, allow_empty_list_item=x in allow_empty_list_item)
if val is not None:
params[field_map.get(x, x)] = val