[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

View File

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