Fixed HP raid parser when disks are in JBOD #209

Merged
geektophe merged 1 commit from fix/chriss/raid_cmd_returncod_hp_jbod into master 2022-03-11 17:05:38 +01:00

1 commit

Author SHA1 Message Date
Christophe Simon
ad951b9288 Fixed HP raid parser when disks are in JBOD
The function parsing the RAID logical volumes in the HP module did not
manage the case where disks were set in JBOD mode, thus having no RAID
array set.

This patch fixes this by checking if arrays are defined on pdisks before
parsing the logical disks.

Also added returncode read when executing the RAID related commands to
raise a more precise error.
2022-03-11 15:55:07 +01:00