vsphere: Adapt to govmomi version bumps

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
This commit is contained in:
Madhav Jivrajani 2023-01-03 00:15:30 +05:30
parent 8b064fa4be
commit e15cdb3513

View File

@ -165,7 +165,8 @@ func configFromSimWithTLS(tlsConfig *tls.Config, insecureAllowed bool) (VSphereC
model.Service.ServeMux.Handle(path, handler)
// vAPI simulator
path, handler = vapi.New(s.URL, vpx.Setting)
paths, handler := vapi.New(s.URL, vpx.Setting)
path = paths[0]
model.Service.ServeMux.Handle(path, handler)
// Lookup Service simulator