mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 22:41:33 +00:00
Extract variable to silence retarded linter
This commit is contained in:
parent
efb8af4cd1
commit
743fab366b
@ -30,7 +30,8 @@ class TerminadoEventHandler(TriggerlessEventHandler):
|
|||||||
def handle_event(self, message):
|
def handle_event(self, message):
|
||||||
LOG.debug('TerminadoEventHandler received event: %s', message)
|
LOG.debug('TerminadoEventHandler received event: %s', message)
|
||||||
try:
|
try:
|
||||||
message['data'] = self.commands[message['data']['command']](message['data'])
|
data = message['data']
|
||||||
|
message['data'] = self.commands[data['command']](data)
|
||||||
return message
|
return message
|
||||||
except KeyError:
|
except KeyError:
|
||||||
LOG.error('IGNORING MESSAGE: Invalid message received: %s', message)
|
LOG.error('IGNORING MESSAGE: Invalid message received: %s', message)
|
||||||
|
Loading…
Reference in New Issue
Block a user