mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-08 16:30:57 -04:00
Fix swallowed error in iscsi package
This commit is contained in:
parent
85f963310e
commit
47ee11437d
1 changed files with 3 additions and 0 deletions
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 a new issue