Include client key in disabled probe list email

This commit is contained in:
Lance Edgar 2018-09-11 18:42:00 -05:00
parent aa98257448
commit ab38143039
2 changed files with 3 additions and 2 deletions

View file

@ -137,6 +137,7 @@ class tempmon_disabled_probes(Email):
tempmon.Client(config_key='foo', hostname='foo.example.com'), tempmon.Client(config_key='foo', hostname='foo.example.com'),
], ],
'disabled_probes': [ 'disabled_probes': [
tempmon.Probe(description="north wall of walk-in cooler"), tempmon.Probe(description="north wall of walk-in cooler",
client=tempmon.Client(config_key='bar')),
], ],
} }

View file

@ -12,7 +12,7 @@
<h3>Disabled Probes</h3> <h3>Disabled Probes</h3>
<ul> <ul>
% for probe in disabled_probes: % for probe in disabled_probes:
<li>${probe}</li> <li>${probe} (for client: ${probe.client.config_key})</li>
% endfor % endfor
</ul> </ul>
% endif % endif