diff --git a/plugins/module_utils/generic.py b/plugins/module_utils/generic.py index 6700356..65a891b 100644 --- a/plugins/module_utils/generic.py +++ b/plugins/module_utils/generic.py @@ -124,9 +124,8 @@ class Types(metaclass=meta): f"helptext of option {name} is unset." " Ansible requires suboptions to have an documentation" ) - elif elements["type"] == "list": - if "choices" in elements: - option["choices"] = elements["choices"] + elif "choices" in elements: + option["choices"] = elements["choices"] if default is not None: option["default"] = default if help is not None and isinstance(help, str):