Final: ajout du downtime
This commit is contained in:
parent
3675dabac2
commit
f71d5eec14
4
data.py
4
data.py
|
@ -184,7 +184,7 @@ class DataStore:
|
||||||
if "DOWNTIMESTART" in type and not cur.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, comment)
|
||||||
# send notification
|
# send notification
|
||||||
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)
|
||||||
|
@ -192,7 +192,7 @@ class DataStore:
|
||||||
elif "DOWNTIMEEND" in type and cur.downtime:
|
elif "DOWNTIMEEND" in type and cur.downtime:
|
||||||
cur.downtime = False
|
cur.downtime = False
|
||||||
message = "fin de downtime sur" \
|
message = "fin de downtime sur" \
|
||||||
" sur %s (%s)" % (host, text)
|
" sur %s (%s)" % (host, comment)
|
||||||
# send notification
|
# send notification
|
||||||
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)
|
||||||
|
|
Loading…
Reference in New Issue