From 1c1f94efd73e3687f279ea66047f80048d6a2bfe Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Mon, 14 Feb 2022 19:43:05 +0100 Subject: [PATCH] ajout du downtime --- data.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/data.py b/data.py index 593b08b..be3f678 100644 --- a/data.py +++ b/data.py @@ -189,13 +189,15 @@ class DataStore: log.info("Sending to %s: %s" % (destmuc, message)) self.linkedBot.push(destmuc, cur.maintainer+", "+message) - elif "DOWNTIMEEND" in type and not cur.downtime: + elif "DOWNTIMEEND" in type and cur.downtime: cur.downtime = True - message = "début de downtime sur" \ + message = "fin de downtime sur" \ " sur %s (%s)" % (host, text) # send notification log.info("Sending to %s: %s" % (destmuc, message)) self.linkedBot.push(destmuc, cur.maintainer+", "+message) + else: + pass # General problem elif not service and problemCount == 0: