Commit d06eb747 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: improve recheck message for stalled nodes

parent ef37a604
......@@ -6,7 +6,6 @@ if context.getSimulationState() == "invalidated":
if context.getPortalType() != "Support Request":
return "Not a Support Request"
now = DateTime()
portal = context.getPortalObject()
document = context.getAggregateValue()
......@@ -49,6 +48,8 @@ if aggregate_portal_type == "Compute Node":
break
if is_instance_stalled and len(instance_list):
if last_contact is None:
return "Process instance stalled"
return "Process instance stalled, last contact was %s" % last_contact
return "All OK, latest contact: %s " % last_contact
......
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