From 47ee11437d513063f3a3c201ca7e07ee93a2d141 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Fri, 25 Aug 2017 20:57:58 -0700 Subject: [PATCH] Fix swallowed error in iscsi package --- pkg/volume/iscsi/iscsi_util.go | 3 +++ 1 file changed, 3 insertions(+) mode change 100755 => 100644 pkg/volume/iscsi/iscsi_util.go diff --git a/pkg/volume/iscsi/iscsi_util.go b/pkg/volume/iscsi/iscsi_util.go old mode 100755 new mode 100644 index ddac19bd857..8744e2225f0 --- a/pkg/volume/iscsi/iscsi_util.go +++ b/pkg/volume/iscsi/iscsi_util.go @@ -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