mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
pkg/volume/nfs/nfs.go: correct error messages.
This commit is contained in:
parent
f9898c3145
commit
180535c1fc
@ -255,7 +255,7 @@ func (b *nfsMounter) SetUpAt(dir string, fsGroup *int64) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
notMnt, mntErr := b.mounter.IsNotMountPoint(dir)
|
notMnt, mntErr := b.mounter.IsNotMountPoint(dir)
|
||||||
if mntErr != nil {
|
if mntErr != nil {
|
||||||
glog.Errorf("IsLikelyNotMountPoint check failed: %v", mntErr)
|
glog.Errorf("IsNotMountPoint check failed: %v", mntErr)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if !notMnt {
|
if !notMnt {
|
||||||
@ -265,7 +265,7 @@ func (b *nfsMounter) SetUpAt(dir string, fsGroup *int64) error {
|
|||||||
}
|
}
|
||||||
notMnt, mntErr := b.mounter.IsNotMountPoint(dir)
|
notMnt, mntErr := b.mounter.IsNotMountPoint(dir)
|
||||||
if mntErr != nil {
|
if mntErr != nil {
|
||||||
glog.Errorf("IsLikelyNotMountPoint check failed: %v", mntErr)
|
glog.Errorf("IsNotMountPoint check failed: %v", mntErr)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if !notMnt {
|
if !notMnt {
|
||||||
|
Loading…
Reference in New Issue
Block a user