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
commit 3a26b864f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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