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:
Thomas Woerner
2019-12-12 22:39:04 +01:00
committed by GitHub

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