Merge pull request #104410 from skyguard1/fix_node_names_util

Fix using variables in the loop in vsphere_util
This commit is contained in:
Kubernetes Prow Robot
2021-08-20 19:11:58 -07:00
committed by GitHub

View File

@@ -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)
}