From 4689ba64669eda7467a7ef9ec7e53c143d177f1d Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Mon, 14 Feb 2022 19:34:57 +0100 Subject: [PATCH] ajout du downtime --- data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data.py b/data.py index 0b73438..9120dea 100644 --- a/data.py +++ b/data.py @@ -181,7 +181,7 @@ class DataStore: else: if "DOWNTIME" in type: - if "DOWNTIMESTART" in type and not self.downtime: + if "DOWNTIMESTART" in type and not cur.downtime: cur.downtime = True message = "début de downtime sur" \ " sur %s (%s)" % (host, text) @@ -189,7 +189,7 @@ class DataStore: log.info("Sending to %s: %s" % (destmuc, message)) self.linkedBot.push(destmuc, cur.maintainer+", "+message) - elif "DOWNTIMEEND" in type and not self.downtime: + elif "DOWNTIMEEND" in type and not cur.downtime: cur.downtime = True message = "début de downtime sur" \ " sur %s (%s)" % (host, text)