mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] forgot to commit actions format change
This commit is contained in:
parent
dc0611d91b
commit
b46fb46768
1 changed files with 1 additions and 0 deletions
|
@ -1389,6 +1389,7 @@ def app_action_run(app_id, action, args=None):
|
|||
|
||||
# will raise if action doesn't exist
|
||||
actions = app_action_list(app_id)["actions"]
|
||||
actions = {x["id"]: x for x in actions}
|
||||
|
||||
if action not in actions:
|
||||
raise MoulinetteError(errno.EINVAL, "action '%s' not available for app '%s', available actions are: %s" % (action, app_id, ", ".join(actions.keys())))
|
||||
|
|
Loading…
Add table
Reference in a new issue