mirror of
https://github.com/eLvErDe/hwraid.git
synced 2025-09-23 17:58:45 +02:00
Add "Device is a unknown device" as a device delimiter
This commit is contained in:
parent
daad522781
commit
76ffce3408
@ -95,7 +95,7 @@ def getDiskList(ctrlnmbr):
|
||||
slotid=''
|
||||
realid=['','']
|
||||
for line in res:
|
||||
if re.match('^Device is a Hard disk.*$',line) or re.match('^Device is a Enclosure services device.*$',line):
|
||||
if re.match('^Device is a Hard disk.*$',line) or re.match('^Device is a Enclosure services device.*$',line) or re.match('^Device is a unknown device.*$',line):
|
||||
if diskid == -1:
|
||||
diskid=diskid+1
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user