This commit is contained in:
2
main.go
2
main.go
@@ -333,7 +333,7 @@ func main() {
|
|||||||
//vm := getVM(event.Vm.Name)
|
//vm := getVM(event.Vm.Name)
|
||||||
|
|
||||||
// If we couldn't find the vm then skip this event
|
// 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())
|
log.Printf("No VM matching string '%s' found in cluster '%s'\n", event.Vm.Name, cluster.Reference())
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user