mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-12-23 04:51:55 +00:00
Clean up confusing usage of data_json['data'] in TerminadoEventHandler
This commit is contained in:
parent
cb7e8c5663
commit
6d59762e2b
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user