mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 05:21:58 +00:00
Merge branch 'fix-fc-swallowed-error' into fix-storageos-swallowed-err
This commit is contained in:
commit
30b9038bbb
@ -220,6 +220,9 @@ func (util *FCUtil) AttachDisk(b fcDiskMounter) (string, error) {
|
|||||||
// mount it
|
// mount it
|
||||||
globalPDPath := util.MakeGlobalPDName(*b.fcDisk)
|
globalPDPath := util.MakeGlobalPDName(*b.fcDisk)
|
||||||
noMnt, err := b.mounter.IsLikelyNotMountPoint(globalPDPath)
|
noMnt, err := b.mounter.IsLikelyNotMountPoint(globalPDPath)
|
||||||
|
if err != nil {
|
||||||
|
return devicePath, fmt.Errorf("Heuristic determination of mount point failed:%v", err)
|
||||||
|
}
|
||||||
if !noMnt {
|
if !noMnt {
|
||||||
glog.Infof("fc: %s already mounted", globalPDPath)
|
glog.Infof("fc: %s already mounted", globalPDPath)
|
||||||
return devicePath, nil
|
return devicePath, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user