mirror of https://github.com/eLvErDe/hwraid.git
[megaclisas-status] Minor Fix for CacheCade
This commit is contained in:
parent
e2735c4466
commit
34abdc9132
|
@ -346,12 +346,12 @@ def returnArrayInfo(output,controllerid,arrayid,arrayindex):
|
|||
# Compute the RAID level
|
||||
if (int(spandepth) >= 2):
|
||||
raidtype = str('RAID-' + str(raidlvl) + '0')
|
||||
NestedLDTable[controllerid][arrayindex] = True
|
||||
NestedLDTable[controllerid][int(arrayindex)] = True
|
||||
else:
|
||||
if(raidlvl == 1):
|
||||
if(diskperspan > 2):
|
||||
raidtype = str('RAID-10')
|
||||
NestedLDTable[controllerid][arrayindex] = True
|
||||
NestedLDTable[controllerid][int(arrayindex)] = True
|
||||
else:
|
||||
raidtype = str('RAID-' + str(raidlvl))
|
||||
else:
|
||||
|
@ -595,7 +595,7 @@ if printarray:
|
|||
ldid += 1
|
||||
elif re.match(r'^(CacheCade )?Virtual Drive:',line.strip()):
|
||||
LDTable[controllerid].append ( ldid )
|
||||
NestedLDTable[controllerid].append ( False )
|
||||
NestedLDTable[controllerid][int(arrayindex)] = False
|
||||
ldcount += 1
|
||||
ldid += 1
|
||||
|
||||
|
|
Loading…
Reference in New Issue