Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
UB-1977 exclude the warning messages in multipath output
Browse files Browse the repository at this point in the history
Signed-off-by: 27149chen <[email protected]>
  • Loading branch information
27149chen committed Apr 8, 2019
1 parent b758e1f commit 5b947e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion remote/mounter/block_device_utils/mpath.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5b947e6

Please sign in to comment.