diff --git a/plugins/module_utils/ansible_freeipa_module.py b/plugins/module_utils/ansible_freeipa_module.py index cd7fcec2994fd393742de16b3996a8a7016e5759..e477f50c6939a5f8bf8feb951e2a1947b6520ec8 100644 --- a/plugins/module_utils/ansible_freeipa_module.py +++ b/plugins/module_utils/ansible_freeipa_module.py @@ -127,6 +127,13 @@ def api_command(module, command, name, args): return api.Command[command](name, **args) +def api_check_param(command, name): + """ + Return if param exists in command param list + """ + return name in api.Command[command].params + + def execute_api_command(module, principal, password, command, name, args): """ Get KRB ticket if not already there, initialize api, connect,