diff --git a/mlc/main.py b/mlc/main.py index d35b298..594804b 100644 --- a/mlc/main.py +++ b/mlc/main.py @@ -1186,8 +1186,8 @@ def get_action(target): def access(i): action = i['action'] - automation = i['automation'] - action_class = get_action(automation) + target = i.get('target', i['automation']) + action_class = get_action(target) r = action_class.access(i) return r