Commit 4b71b324 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: Don't pre-append monitoring.

parent 206f662b
...@@ -30,7 +30,7 @@ if d.get("text").startswith("#building"): ...@@ -30,7 +30,7 @@ if d.get("text").startswith("#building"):
return last_contact return last_contact
should_notify = True should_notify = True
ticket_title = "[MONITORING] %s is building for too long on %s" % (reference, software_installation.getAggregateReference()) ticket_title = "%s is building for too long on %s" % (reference, software_installation.getAggregateReference())
description = "The software release %s is building for mode them 12 hours on %s, started on %s" % \ description = "The software release %s is building for mode them 12 hours on %s, started on %s" % \
(software_installation.getUrlString(), software_installation.getAggregateTitle(), software_installation.getCreationDate()) (software_installation.getUrlString(), software_installation.getAggregateTitle(), software_installation.getCreationDate())
return should_notify, ticket_title, description, last_contact return should_notify, ticket_title, description, last_contact
...@@ -40,7 +40,7 @@ if d.get("text").startswith("#error"): ...@@ -40,7 +40,7 @@ if d.get("text").startswith("#error"):
return DateTime(d.get('created_at')) return DateTime(d.get('created_at'))
should_notify = True should_notify = True
ticket_title = "[MONITORING] %s is failing to build on %s" % (reference, software_installation.getAggregateReference()) ticket_title = "%s is failing to build on %s" % (reference, software_installation.getAggregateReference())
description = "The software release %s is failing to build for too long on %s, started on %s" % \ description = "The software release %s is failing to build for too long on %s, started on %s" % \
(software_installation.getUrlString(), software_installation.getAggregateTitle(), software_installation.getCreationDate()) (software_installation.getUrlString(), software_installation.getAggregateTitle(), software_installation.getCreationDate())
return should_notify, ticket_title, description, last_contact return should_notify, ticket_title, description, 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