mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 21:11:32 +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,
|
||||
'data': {'current_state': self.fsm.state,
|
||||
'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
|
||||
|
||||
def listen(self, port):
|
||||
|
Loading…
Reference in New Issue
Block a user