This commit is contained in:
2
main.go
2
main.go
@@ -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 {
|
||||
|
Reference in New Issue
Block a user