mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-05 13:41:20 +00:00
Make FSMBase.step() return an exit code
This commit is contained in:
parent
1a52ed2c9a
commit
8ba99d8e36
@ -62,5 +62,7 @@ class FSMBase(Machine, CallbackMixin):
|
||||
try:
|
||||
self.trigger(trigger)
|
||||
self.trigger_history.append(trigger)
|
||||
return True
|
||||
except (AttributeError, MachineError):
|
||||
LOG.debug('FSM failed to execute nonexistent trigger: "%s"', trigger)
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user