fix initial copro state
@@ -114,7 +114,8 @@ class Endpoint:
'dest': 'inactive', 'before': 'update_state_history'}
]
- copro_states = ['copro_unknown', 'copro_coprocessing', 'copro_nominal', 'copro_suspicious', 'copro_queued']
+ copro_states = ['copro_unknown', 'copro_coprocessing',
+ 'copro_nominal', 'copro_suspicious', 'copro_queued']
copro_transitions = [
{'trigger': 'copro_coprocess', 'source': 'copro_unknown',
@@ -228,7 +229,7 @@ def endpoint_factory(hashed_val):
model=endpoint,
states=Endpoint.copro_states,
transitions=Endpoint.copro_transitions,
- initial='unknown',
+ initial='copro_unknown',
send_event=True)
copro_machine.name = endpoint.name[:8]+'_copro'
endpoint.copro_machine = copro_machine
