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:
Kubernetes Submit Queue 2017-08-26 08:23:09 -07:00 committed by GitHub
commit 223227eb59

3
pkg/volume/iscsi/iscsi_util.go Executable file → Normal file
View 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