diff --git a/lib/tfw/components/terminado_event_handler.py b/lib/tfw/components/terminado_event_handler.py index 756d4db..4a8f98a 100644 --- a/lib/tfw/components/terminado_event_handler.py +++ b/lib/tfw/components/terminado_event_handler.py @@ -23,8 +23,7 @@ class TerminadoEventHandler(TriggerlessEventHandler): def handle_event(self, key, data_json): log.debug('TerminadoEventHandler received event: {}'.format(data_json)) - data = data_json['data'] - data_json['data'] = self.commands[data['command']](data) + data_json['data'] = self.commands[data_json['data']['command']](data_json['data']) return data_json def write(self, data):