[megaclisas-status] Minor Fix for CacheCade

This commit is contained in:
Vincent S. Cojot 2016-03-09 08:32:07 -05:00
parent e2735c4466
commit 34abdc9132
1 changed files with 3 additions and 3 deletions

View File

@ -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