diff --git a/remote/mounter/block_device_utils/mpath.go b/remote/mounter/block_device_utils/mpath.go index fb982a9b..893da376 100644 --- a/remote/mounter/block_device_utils/mpath.go +++ b/remote/mounter/block_device_utils/mpath.go @@ -81,8 +81,10 @@ func (b *blockDeviceUtils) Discover(volumeWwn string, deepDiscovery bool) (strin } else { mpath = b.mpathDevFullPath(dev) + mpathOutput := utils.ExcludeNoTargetPortGroupMessagesFromMultipathOutput(string(outputBytes[:]), b.logger) + // Validate that we have the correct wwn. - SqInqWwn, err := b.GetWwnByScsiInq(string(outputBytes[:]), mpath) + SqInqWwn, err := b.GetWwnByScsiInq(mpathOutput, mpath) if err != nil { switch err.(type) { case *FaultyDeviceError: