Merge pull request #101495 from jingxu97/apr/cleanupmountpoint

Fix cleanupMountpoint issue for Windows
This commit is contained in:
Kubernetes Prow Robot 2021-04-27 05:51:37 -07:00 committed by GitHub
commit 78862bf971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,6 +122,10 @@ func removePathIfNotMountPoint(mountPath string, mounter Interface, extensiveMou
}
if err != nil {
if os.IsNotExist(err) {
klog.V(4).Infof("%q does not exist", mountPath)
return true, nil
}
return notMnt, err
}