mirror of
https://github.com/moan0s/alertbot.git
synced 2024-10-01 06:25:35 -04:00
Remove unnecessary comment
This commit is contained in:
parent
e7ac3d6881
commit
896a536ae4
@ -67,13 +67,6 @@ def get_alert_messages(alertmanager_data: dict, raw_mode=False) -> list:
|
|||||||
if raw_mode:
|
if raw_mode:
|
||||||
return ["**Data received**\n```\n" + str(alertmanager_data).strip("\n").strip() + "\n```"]
|
return ["**Data received**\n```\n" + str(alertmanager_data).strip("\n").strip() + "\n```"]
|
||||||
messages = []
|
messages = []
|
||||||
""" try:
|
|
||||||
# Check if grafana alert/resolved
|
|
||||||
if alertmanager_data['alerts']:
|
|
||||||
messages.append(grafana_alert_to_markdown(alertmanager_data))
|
|
||||||
|
|
||||||
except KeyError:
|
|
||||||
"""
|
|
||||||
for alert in alertmanager_data["alerts"]:
|
for alert in alertmanager_data["alerts"]:
|
||||||
messages.append(alert_to_markdown(alert))
|
messages.append(alert_to_markdown(alert))
|
||||||
return messages
|
return messages
|
||||||
|
Loading…
Reference in New Issue
Block a user