[megaclisas-stat] some extra level of protection..

This commit is contained in:
Vincent S. Cojot 2016-01-14 14:18:13 -05:00
parent 8ef38aa659
commit 7aa60e87fb
1 changed files with 1 additions and 1 deletions

View File

@ -407,7 +407,7 @@ def returnDiskInfo(output,controllerid):
temp = re.sub(' \(.*\)', '', temp)
if model != 'Unknown':
dbgprint('Disk Info: '+str(arrayid)+' '+str(diskid)+' '+str(oldenclid))
if ( NestedLDTable[controllerid][int(arrayid)] == True):
if (( NestedLDTable[controllerid][int(arrayid)] == True) and (spanid != False)):
table.append([str(arrayid)+"s"+spanid, str(diskid), mtype, model, dsize, fstate , speed, temp, enclid, slotid, lsidid])
else:
table.append([str(arrayid), str(diskid), mtype, model, dsize, fstate , speed, temp, enclid, slotid, lsidid])