mirror of
https://github.com/FAUSheppy/atlantis-event-dispatcher
synced 2025-12-08 07:21:36 +01:00
fix: service state field name
This commit is contained in:
@@ -7,7 +7,7 @@ class UnsupportedStruct(Exception):
|
|||||||
|
|
||||||
def make_icinga_message(struct):
|
def make_icinga_message(struct):
|
||||||
|
|
||||||
first_line = "{state} - {service} ({host})".format(state=struct.get("state"),
|
first_line = "{state} - {service} ({host})".format(state=struct.get("service_state"),
|
||||||
service=struct.get("service_name"), host=struct.get("service_host"))
|
service=struct.get("service_name"), host=struct.get("service_host"))
|
||||||
second_line = struct.get("service_output") or ""
|
second_line = struct.get("service_output") or ""
|
||||||
third_line = "Direkt-Link: {link}".format(link=struct.get("icingaeweb_url"))
|
third_line = "Direkt-Link: {link}".format(link=struct.get("icingaeweb_url"))
|
||||||
|
|||||||
Reference in New Issue
Block a user