fix entity filter
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-05-23 12:28:31 +10:00
parent b5d10d535e
commit 7da16fc9da

View File

@@ -54,7 +54,8 @@ func getEvents(eventTypes []string, entities []types.ManagedObjectReference, beg
if len(entities) > 0 { if len(entities) > 0 {
fmt.Printf("getEvents setting entity '%v' to filter\n", entities[0]) fmt.Printf("getEvents setting entity '%v' to filter\n", entities[0])
filter.Entity = &types.EventFilterSpecByEntity{ filter.Entity = &types.EventFilterSpecByEntity{
Entity: entities[0], Entity: entities[0],
Recursion: types.EventFilterSpecRecursionOptionAll,
} }
} }
if end != 0 { if end != 0 {