Skip to content

Commit

Permalink
Merge pull request #101543 from jingxu97/automated-cherry-pick-of-#10…
Browse files Browse the repository at this point in the history
…1495-upstream-release-1.20

Automated cherry pick of #101495: Fix cleanupMountpoint issue for Windows
  • Loading branch information
k8s-ci-robot committed Jun 9, 2021
2 parents 2b49e69 + d375876 commit 68ec9e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions staging/src/k8s.io/mount-utils/mount_helper_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ func doCleanupMountPoint(mountPath string, mounter Interface, extensiveMountPoin
notMnt, err = mounter.IsLikelyNotMountPoint(mountPath)
}
if err != nil {
if os.IsNotExist(err) {
klog.V(4).Infof("%q does not exist", mountPath)
return nil
}
return err
}
if notMnt {
Expand Down

0 comments on commit 68ec9e0

Please sign in to comment.