Skip to content

Commit 76f03f0

Browse files
committed
Fix use variables in the loop in vsphere_util
1 parent 027fe25 commit 76f03f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

staging/src/k8s.io/legacy-cloud-providers/vsphere/vsphere_util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ func (vs *VSphere) BuildMissingVolumeNodeMap(ctx context.Context) {
639639
// Start go routines per VC-DC to check disks are attached
640640
wg.Add(1)
641641
go func(nodes []k8stypes.NodeName) {
642-
err := vs.checkNodeDisks(ctx, nodeNames)
642+
err := vs.checkNodeDisks(ctx, nodes)
643643
if err != nil {
644644
klog.Errorf("Failed to check disk attached for nodes: %+v. err: %+v", nodes, err)
645645
}

0 commit comments

Comments
 (0)