mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 07:51:32 +00:00
Fix condition in PR #62
This commit is contained in:
parent
13179e59eb
commit
f5e7d6016a
@ -31,7 +31,8 @@ class FSMHandler:
|
||||
LOG.error('IGNORING MESSAGE: Invalid message received: %s', message)
|
||||
|
||||
def handle_step(self, message):
|
||||
return message if self.fsm.step(message['trigger']) else None
|
||||
if self.fsm.step(message['trigger']):
|
||||
return message
|
||||
|
||||
def handle_update(self, message):
|
||||
# pylint: disable=no-self-use
|
||||
|
Loading…
Reference in New Issue
Block a user