Skip to content

Commit

Permalink
Merge pull request #1082 from SanjalKatiyar/fix_mpath_filtering_bug
Browse files Browse the repository at this point in the history
Fix mpath filtering issue
  • Loading branch information
openshift-ci[bot] authored Oct 19, 2023
2 parents 6cbe2ac + f3a1961 commit ab15ccc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ const getTotalCapacity = (disks: DiscoveredDisk[]): number =>

const isAvailableDisk = (disk: DiscoveredDisk): boolean =>
disk?.status?.state === AVAILABLE &&
(disk.type === DiskType.RawDisk || disk.type === DiskType.Partition);
(disk.type === DiskType.RawDisk ||
disk.type === DiskType.Partition ||
disk.type === DiskType.Multipath);

const isValidSize = (disk: DiscoveredDisk, minSize: number, maxSize: number) =>
Number(disk.size) >= minSize &&
Expand Down

0 comments on commit ab15ccc

Please sign in to comment.