mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Merge pull request #51391 from alrs/fix-iscsi-swallowed-error
Automatic merge from submit-queue Fix swallowed error in iscsi package **What this PR does / why we need it**: Fixes a swallowed error in the iscsi package. ```release-note NONE ```
This commit is contained in:
commit
223227eb59
3
pkg/volume/iscsi/iscsi_util.go
Executable file → Normal file
3
pkg/volume/iscsi/iscsi_util.go
Executable file → Normal file
@ -294,6 +294,9 @@ func (util *ISCSIUtil) AttachDisk(b iscsiDiskMounter) error {
|
|||||||
// mount it
|
// mount it
|
||||||
globalPDPath := b.manager.MakeGlobalPDName(*b.iscsiDisk)
|
globalPDPath := b.manager.MakeGlobalPDName(*b.iscsiDisk)
|
||||||
notMnt, err := b.mounter.IsLikelyNotMountPoint(globalPDPath)
|
notMnt, err := b.mounter.IsLikelyNotMountPoint(globalPDPath)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("Heuristic determination of mount point failed:%v", err)
|
||||||
|
}
|
||||||
if !notMnt {
|
if !notMnt {
|
||||||
glog.Infof("iscsi: %s already mounted", globalPDPath)
|
glog.Infof("iscsi: %s already mounted", globalPDPath)
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user