mirror of
https://github.com/eLvErDe/hwraid.git
synced 2025-07-28 16:24:02 +02:00
Merge pull request #24 from nschmalenberger/master
[sas2ircu-status] Add "Device is a unknown device" as a device delimiter
This commit is contained in:
commit
1dffacc214
@ -104,7 +104,7 @@ def getDiskList(ctrlnmbr):
|
|||||||
slotid=''
|
slotid=''
|
||||||
realid=['','']
|
realid=['','']
|
||||||
for line in res:
|
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:
|
if diskid == -1:
|
||||||
diskid=diskid+1
|
diskid=diskid+1
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user