From f71d5eec14f2410c12750145fe0c5d42de0d2674 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Mon, 14 Feb 2022 19:52:46 +0100 Subject: [PATCH] Final: ajout du downtime --- data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data.py b/data.py index 199bc07..4a55274 100644 --- a/data.py +++ b/data.py @@ -184,7 +184,7 @@ class DataStore: if "DOWNTIMESTART" in type and not cur.downtime: cur.downtime = True message = "début de downtime sur" \ - " sur %s (%s)" % (host, text) + " sur %s (%s)" % (host, comment) # send notification log.info("Sending to %s: %s" % (destmuc, message)) self.linkedBot.push(destmuc, cur.maintainer+", "+message) @@ -192,7 +192,7 @@ class DataStore: elif "DOWNTIMEEND" in type and cur.downtime: cur.downtime = False message = "fin de downtime sur" \ - " sur %s (%s)" % (host, text) + " sur %s (%s)" % (host, comment) # send notification log.info("Sending to %s: %s" % (destmuc, message)) self.linkedBot.push(destmuc, cur.maintainer+", "+message)