mirror of
https://github.com/eLvErDe/hwraid.git
synced 2025-07-25 23:04:44 +02:00
[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
|
# Compute the RAID level
|
||||||
if (int(spandepth) >= 2):
|
if (int(spandepth) >= 2):
|
||||||
raidtype = str('RAID-' + str(raidlvl) + '0')
|
raidtype = str('RAID-' + str(raidlvl) + '0')
|
||||||
NestedLDTable[controllerid][arrayindex] = True
|
NestedLDTable[controllerid][int(arrayindex)] = True
|
||||||
else:
|
else:
|
||||||
if(raidlvl == 1):
|
if(raidlvl == 1):
|
||||||
if(diskperspan > 2):
|
if(diskperspan > 2):
|
||||||
raidtype = str('RAID-10')
|
raidtype = str('RAID-10')
|
||||||
NestedLDTable[controllerid][arrayindex] = True
|
NestedLDTable[controllerid][int(arrayindex)] = True
|
||||||
else:
|
else:
|
||||||
raidtype = str('RAID-' + str(raidlvl))
|
raidtype = str('RAID-' + str(raidlvl))
|
||||||
else:
|
else:
|
||||||
@ -595,7 +595,7 @@ if printarray:
|
|||||||
ldid += 1
|
ldid += 1
|
||||||
elif re.match(r'^(CacheCade )?Virtual Drive:',line.strip()):
|
elif re.match(r'^(CacheCade )?Virtual Drive:',line.strip()):
|
||||||
LDTable[controllerid].append ( ldid )
|
LDTable[controllerid].append ( ldid )
|
||||||
NestedLDTable[controllerid].append ( False )
|
NestedLDTable[controllerid][int(arrayindex)] = False
|
||||||
ldcount += 1
|
ldcount += 1
|
||||||
ldid += 1
|
ldid += 1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user