Commit 3e5fed25 authored by Jürgen Haas's avatar Jürgen Haas

Ignore silent alarms

parent 63748159
......@@ -151,7 +151,13 @@ class Host:
if not self.available:
return 'unavailable'
if self.number_of_alarms == 0:
n = self.number_of_alarms
for alarm in self.alarms:
if self.alarms[alarm]['recipient'] == 'silent':
n = n - 1
if n == 0:
return 'ok'
for alarm in self.alarms:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment