[fix] forgot to commit actions format change

This commit is contained in:
Laurent Peuch 2018-06-22 07:34:24 +02:00
parent dc0611d91b
commit b46fb46768

View file

@ -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())))