diff --git a/staging/src/k8s.io/legacy-cloud-providers/vsphere/vsphere_util.go b/staging/src/k8s.io/legacy-cloud-providers/vsphere/vsphere_util.go index 0b778a6a7cc0f..68fb9c5c7364f 100644 --- a/staging/src/k8s.io/legacy-cloud-providers/vsphere/vsphere_util.go +++ b/staging/src/k8s.io/legacy-cloud-providers/vsphere/vsphere_util.go @@ -639,7 +639,7 @@ func (vs *VSphere) BuildMissingVolumeNodeMap(ctx context.Context) { // Start go routines per VC-DC to check disks are attached wg.Add(1) go func(nodes []k8stypes.NodeName) { - err := vs.checkNodeDisks(ctx, nodeNames) + err := vs.checkNodeDisks(ctx, nodes) if err != nil { klog.Errorf("Failed to check disk attached for nodes: %+v. err: %+v", nodes, err) }