ajout du downtime

This commit is contained in:
Adrien Bourmault 2022-02-14 19:34:57 +01:00
parent b32fc936c6
commit 4689ba6466
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ class DataStore:
else: else:
if "DOWNTIME" in type: if "DOWNTIME" in type:
if "DOWNTIMESTART" in type and not self.downtime: if "DOWNTIMESTART" in type and not cur.downtime:
cur.downtime = True cur.downtime = True
message = "début de downtime sur" \ message = "début de downtime sur" \
" sur %s (%s)" % (host, text) " sur %s (%s)" % (host, text)
@ -189,7 +189,7 @@ class DataStore:
log.info("Sending to %s: %s" % (destmuc, message)) log.info("Sending to %s: %s" % (destmuc, message))
self.linkedBot.push(destmuc, cur.maintainer+", "+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 cur.downtime = True
message = "début de downtime sur" \ message = "début de downtime sur" \
" sur %s (%s)" % (host, text) " sur %s (%s)" % (host, text)