Commit e9bd8eaa authored by Martin Matějek's avatar Martin Matějek

Store skeleton actions in ordered dictionary

That way keys and values will always be in order defined in yaml
when returned tu user code (cli, foris, etc.)
parent b475d7b1
import os
from collections import OrderedDict
from .plugin import Plugin
from .logger import logger
from .notificationskeleton import NotificationSkeleton
......@@ -64,7 +66,7 @@ class PluginStorage:
notification_args['name'] = notification_types[skel_name]['name']
notification_args['plugin_name'] = plugin_name
skel_actions = {}
skel_actions = OrderedDict()
plugin_actions = self.plugins[plugin_name].get_actions()
for action in notification_types[skel_name]['actions']:
if action in plugin_actions:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment