Final: ajout du downtime

This commit is contained in:
Adrien Bourmault 2022-02-14 19:52:46 +01:00
parent 3675dabac2
commit f71d5eec14
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 2 additions and 2 deletions

View File

@ -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)