Skip to content

Commit ccbcd40

Browse files
CopilotHenriWahl
andcommitted
Fix nagiosify_service boolean-or bug in Zabbix.py
Co-authored-by: HenriWahl <2835065+HenriWahl@users.noreply.github.com>
1 parent 9c159e1 commit ccbcd40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Nagstamon/servers/Zabbix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ def nagiosify_service(self, service):
489489
"""
490490
next dirty workaround to get Zabbix events to look Nagios-esque
491491
"""
492-
if (" on " or " is ") in service:
492+
if " on " in service or " is " in service:
493493
for separator in [" on ", " is "]:
494494
service = service.split(separator)[0]
495495
return service

0 commit comments

Comments
 (0)