diff --git a/node_monitor/node_monitor_helpers/messages.py b/node_monitor/node_monitor_helpers/messages.py index d9e55f55..f566e2bf 100644 --- a/node_monitor/node_monitor_helpers/messages.py +++ b/node_monitor/node_monitor_helpers/messages.py @@ -102,7 +102,7 @@ def _make_diagnostic_message() -> str: case 0: return "" case _: return (f"🛑 Node(s) Compromised:\n" f"\n" - f"{detailnodes(nodes_down, labels)}\n") + f"{detailnodes(nodes_down, labels)}\n\n") def _make_subject() -> str: datacenters = {node.dc_id.upper() for node in nodes_down} match len(nodes_down): @@ -115,8 +115,7 @@ def _render_frac(numerator: int, denominator: int) -> str: # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - subject = _make_subject() message = ( - f"{_make_diagnostic_message()}\n" - f"\n" + f"{_make_diagnostic_message()}" f"🔎 Node Status Breakdown:\n" f"Nodes Up: { _render_frac(len(nodes_up ), total_nodes) }\n" f"Nodes Down: { _render_frac(len(nodes_down), total_nodes) }\n"