Skip to content

Commit

Permalink
fix too many extra newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
mourginakis committed Oct 26, 2023
1 parent f3a1e29 commit 2170b57
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions node_monitor/node_monitor_helpers/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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"
Expand Down

0 comments on commit 2170b57

Please sign in to comment.