Remove calls to destroy on ViewManager (#5557)
This commit is contained in:
parent
91cd17fd40
commit
1752619e35
|
@ -79,7 +79,6 @@ func (f *Finder) descend(ctx context.Context, root types.ManagedObjectReference,
|
|||
}
|
||||
|
||||
m := view.NewManager(f.client.Client.Client)
|
||||
defer m.Destroy(ctx)
|
||||
v, err := m.CreateContainerView(ctx, root, ct, false)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue