diff --git a/pkg/csi/recover/recover.go b/pkg/csi/recover/recover.go index b1d289bdba0..037f38ccd3e 100644 --- a/pkg/csi/recover/recover.go +++ b/pkg/csi/recover/recover.go @@ -181,7 +181,7 @@ func (r *FuseRecover) recoverBrokenMount(point mountinfo.MountPoint) (err error) // Info: Attempting recovery action glog.V(3).Infof("FuseRecovery: attempting bind mount, source=%s mountPath=%s options=%v", point.SourcePath, point.MountPath, mountOption) - if err := r.Mount(point.SourcePath, point.MountPath, "none", mountOption); err != nil { + if err = r.Mount(point.SourcePath, point.MountPath, "none", mountOption); err != nil { // Warning: Mount failure is recoverable - will retry on next cycle glog.Warningf("FuseRecovery: bind mount failed, mountPath=%s source=%s error=%v", point.MountPath, point.SourcePath, err) }