mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-11-25 18:33:44 +00:00
Merge pull request #162 from rjeffman/allow_apicommand_with_no_parameters
Allow execution of API commands that do not require parameters.
This commit is contained in:
@@ -151,6 +151,13 @@ def api_command(module, command, name, args):
|
|||||||
return api.Command[command](name, **args)
|
return api.Command[command](name, **args)
|
||||||
|
|
||||||
|
|
||||||
|
def api_command_no_name(module, command, args):
|
||||||
|
"""
|
||||||
|
Call ipa.Command without a name.
|
||||||
|
"""
|
||||||
|
return api.Command[command](**args)
|
||||||
|
|
||||||
|
|
||||||
def api_check_param(command, name):
|
def api_check_param(command, name):
|
||||||
"""
|
"""
|
||||||
Return if param exists in command param list
|
Return if param exists in command param list
|
||||||
|
|||||||
Reference in New Issue
Block a user