Commit 86268421 authored by Rafael Monnerat's avatar Rafael Monnerat

[slapos_crm] Check if the instance don't contact is irrelevant

This is duplicated check with "Check if Computer Contacted". The only ocasion that this can happens is if someone comments "slapos node instance" from cron (in this case is not master duty to know if backend is not modified in a bad way).
parent 2cf85a17
...@@ -78,13 +78,6 @@ if result.startswith(\'#error \'):\n ...@@ -78,13 +78,6 @@ if result.startswith(\'#error \'):\n
title = "Instance %s in error state" % reference\n title = "Instance %s in error state" % reference\n
description = "%s has been in error state for more than 2 hours (last contact date: %s)" % (reference, last_contact)\n description = "%s has been in error state for more than 2 hours (last contact date: %s)" % (reference, last_contact)\n
\n \n
elif result.startswith(\'#access \'):\n
# If there was no contact for more than one day generate a support request\n
if (now - last_contact) > 1:\n
tag = "Support Request generation for %s" % reference\n
title = "Instance %s in unknown state" % reference\n
description = "%s has not contacted the server for more than 24 hours (last contact date: %s)" % (reference, last_contact)\n
\n
if title != "":\n if title != "":\n
return context.Base_generateSupportRequestForSlapOS(\n return context.Base_generateSupportRequestForSlapOS(\n
title,\n title,\n
......
26 27
\ No newline at end of file \ No newline at end of file
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