lockDevices() fixed parsing raids (linux)

This commit is contained in:
Sebastian Hildebrandt
2023-02-23 22:54:56 +01:00
parent d81c31ec45
commit a19d0cfcc7
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -384,7 +384,7 @@ function decodeMdabmData(lines) {
const raid = util.getValue(lines, 'md_level', '=');
const members = [];
lines.forEach(line => {
if (line.toLowerCase().startsWith('md_device_ev') && line.toLowerCase().indexOf('/dev/') > 0) {
if (line.toLowerCase().startsWith('md_device_dev') && line.toLowerCase().indexOf('/dev/') > 0) {
members.push(line.split('/dev/')[1]);
}
});