Commit 6a8a1a19 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: Do not suspend tickets on temporary messages

The logic implemented on client is (for started instances):

Notify instances are available to master
run promises if fail report error
Notify instances are started to master

The change on this commit prevent us to consider the notification of availability as "no error", as promise can still fail, so we just ignore and let the decision to suspend for the next run.
parent e5d0f65c
......@@ -31,6 +31,11 @@ if not has_error:
if not person:
return
message = instance.instance.SoftwareInstance_hasReportedError(include_message=True)
if message in ["Not possible to find the last message", "#access instance available"]:
# Do not change state in case of transitory states.
return
if context.getSimulationState() == "validated":
context.suspend()
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment