ajout du downtime
This commit is contained in:
parent
b32fc936c6
commit
4689ba6466
4
data.py
4
data.py
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue