add logging
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-05-23 12:13:01 +10:00
parent 139990df32
commit b5e92a5ff2

View File

@@ -127,7 +127,7 @@ func main() {
// Create a container view so that we can search vCenter for a VM if we found any failure events
cv, _ := m.CreateContainerView(ctx, c.ServiceContent.RootFolder, []string{"VirtualMachine"}, true)
fmt.Printf("Searching for hostfailure events\n")
hostFailures := getEvents([]string{"com.vmware.vc.HA.DasHostFailedEvent"}, []types.ManagedObjectReference{}, *begin, *end)
if len(hostFailures) > 0 {