diff --git a/staging/src/k8s.io/legacy-cloud-providers/vsphere/vsphere_test.go b/staging/src/k8s.io/legacy-cloud-providers/vsphere/vsphere_test.go index d2d34302ee0..06c67e4a926 100644 --- a/staging/src/k8s.io/legacy-cloud-providers/vsphere/vsphere_test.go +++ b/staging/src/k8s.io/legacy-cloud-providers/vsphere/vsphere_test.go @@ -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