diff --git a/main.go b/main.go index b47a5d2..96dfb73 100644 --- a/main.go +++ b/main.go @@ -333,7 +333,7 @@ func main() { //vm := getVM(event.Vm.Name) // If we couldn't find the vm then skip this event - if len(vm.Reference().String()) == 0 { + if len(vm.ExtensibleManagedObject.Self.Value) == 0 { log.Printf("No VM matching string '%s' found in cluster '%s'\n", event.Vm.Name, cluster.Reference()) continue }