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)