@cryptotaxi247 / infra-1 / commits / aedb46e8

go-neb: Adding the secretFile again made the double-dollars necessary

Graham Christensen committed Dec 20, 2021 at 15:41 UTC aedb46e8858c5607ed797f2c0c8418f05b342352
1 file changed +4 -4
delft/eris/alertmanager-matrix-forwarder.nix
+4 -4
@@ -39,14 +39,14 @@
39 # $$severity otherwise envsubst replaces $severity with an empty string
40 html_template = ''
41 {{range .Alerts -}}
42 - {{ $severity := index .Labels "severity" }}
42 + {{ $$severity := index .Labels "severity" }}
43 {{ if eq .Status "firing" }}
44 - {{ if eq $severity "critical"}}
44 + {{ if eq $$severity "critical"}}
45 <font color='red'><b>[FIRING - CRITICAL]</b></font>
46 - {{ else if eq $severity "warning"}}
46 + {{ else if eq $$severity "warning"}}
47 <font color='orange'><b>[FIRING - WARNING]</b></font>
48 {{ else }}
49 - <b>[FIRING - {{ $severity }}]</b>
49 + <b>[FIRING - {{ $$severity }}]</b>
50 {{ end }}
51 {{ else }}
52 <font color='green'><b>[RESOLVED]</b></font>