mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-28 18:34:44 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user