fix sticky acknowledgements not getting recognized

This commit is contained in:
Franzi 2021-06-22 06:55:22 +02:00
parent 0307fe42f3
commit 5a1658478a
Signed by: kunsi
GPG Key ID: 12E3D2136B818350
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ def regenerate():
if host['attrs']['downtime_depth'] > 0: if host['attrs']['downtime_depth'] > 0:
continue continue
if host['attrs']['acknowledgement'] == 1: if host['attrs']['acknowledgement'] > 0:
if not CONFIG['show_ack']: if not CONFIG['show_ack']:
continue continue
@ -107,7 +107,7 @@ def regenerate():
if svc['attrs']['downtime_depth'] > 0 or svc['attrs']['host_name'] in broken_hosts: if svc['attrs']['downtime_depth'] > 0 or svc['attrs']['host_name'] in broken_hosts:
continue continue
if svc['attrs']['acknowledgement'] == 1: if svc['attrs']['acknowledgement'] > 0:
if not CONFIG['show_ack']: if not CONFIG['show_ack']:
continue continue