mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-23 02:11:31 +00:00
Fix generate_fsm_update() not listing valid transitions properly
This commit is contained in:
parent
ecbb61a862
commit
38ca56fa9d
@ -38,7 +38,7 @@ class TFWServer:
|
|||||||
response = {'key': key,
|
response = {'key': key,
|
||||||
'data': {'current_state': self.fsm.state,
|
'data': {'current_state': self.fsm.state,
|
||||||
'valid_transitions':
|
'valid_transitions':
|
||||||
[{'trigger': trigger} for trigger in self.fsm.machine.get_triggers()]}}
|
[{'trigger': trigger} for trigger in self.fsm.machine.get_triggers(self.fsm.state)]}}
|
||||||
return response, key
|
return response, key
|
||||||
|
|
||||||
def listen(self, port):
|
def listen(self, port):
|
||||||
|
Loading…
Reference in New Issue
Block a user