Allow execution of API commands that do not require a name.

There are some commands in the IPA API that do not require
arguments, and current implementation does not allow these
commands to be execute.

This patch adds api_command_no_name to allow the execution
of such commands, which is required, for example, to create
a vaultcontainer management module.
This commit is contained in:
Rafael Guterres Jeffman
2019-12-09 14:51:40 -03:00
parent bf1e53cb70
commit 0210899eb7

View File

@@ -151,6 +151,13 @@ def api_command(module, 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):
"""
Return if param exists in command param list