mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 18:31:33 +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:
|
try:
|
||||||
self.trigger(trigger)
|
self.trigger(trigger)
|
||||||
self.trigger_history.append(trigger)
|
self.trigger_history.append(trigger)
|
||||||
|
return True
|
||||||
except (AttributeError, MachineError):
|
except (AttributeError, MachineError):
|
||||||
LOG.debug('FSM failed to execute nonexistent trigger: "%s"', trigger)
|
LOG.debug('FSM failed to execute nonexistent trigger: "%s"', trigger)
|
||||||
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user