use possible hosts for actual vm restart time search
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-03-18 10:22:16 +11:00
parent 29eab3df05
commit 6aa7627c96

View File

@@ -406,8 +406,8 @@ func main() {
var checkActualTime []types.Event var checkActualTime []types.Event
// Search for any disconnected messages prior to actual restart time rather than fuzzy time // Search for any disconnected messages prior to actual restart time rather than fuzzy time
log.Printf("Checking host failure list based on actual VM restart time %s\n", vmRestartTime) log.Printf("Checking possible hosts list based on actual VM restart time %s\n", vmRestartTime)
for _, hostEvent := range hostFailures { for _, hostEvent := range possibleHosts {
if hostEvent.CreatedTime.In(location).Before(vmRestartTime) || hostEvent.CreatedTime.In(location).Equal(vmRestartTime) { if hostEvent.CreatedTime.In(location).Before(vmRestartTime) || hostEvent.CreatedTime.In(location).Equal(vmRestartTime) {
checkActualTime = append(checkActualTime, hostEvent) checkActualTime = append(checkActualTime, hostEvent)
} }