Update main.go
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-12-03 10:23:07 +11:00
parent a1e4649455
commit f86aefdca6

View File

@@ -278,7 +278,8 @@ func main() {
// filter ha status changed messages for unreachable ones
for _, h := range haStatusChanges {
unreachableMessage := strings.Contains(strings.ToLower(h.FullFormattedMessage), "changed to unreachable")
if unreachableMessage {
hostFailedMessage := strings.Contains(strings.ToLower(h.FullFormattedMessage), "changed to host failed")
if unreachableMessage || hostFailedMessage {
// make sure this host was in the host failures list
hostFound := false