Merge pull request #107236 from cyclinder/fix_bug_WaitForAttach

GCEPD: fix incorrect return value in WaitForAttach
This commit is contained in:
Kubernetes Prow Robot 2022-02-08 09:59:02 -08:00 committed by GitHub
commit 6a5b3da1d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,8 +242,9 @@ func (attacher *gcePersistentDiskAttacher) WaitForAttach(spec *volume.Spec, devi
id, err := getDiskID(pdName, exec)
if err != nil {
klog.Errorf("WaitForAttach (windows) failed with error %s", err)
return "", err
}
return id, err
return id, nil
}
partition := ""