mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +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
|
||||
globalPDPath := b.manager.MakeGlobalPDName(*b.iscsiDisk)
|
||||
notMnt, err := b.mounter.IsLikelyNotMountPoint(globalPDPath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Heuristic determination of mount point failed:%v", err)
|
||||
}
|
||||
if !notMnt {
|
||||
glog.Infof("iscsi: %s already mounted", globalPDPath)
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user