mirror of
https://github.com/eLvErDe/hwraid.git
synced 2025-07-06 13:34:21 +02:00
[megaclisas-status] Minor fix.
This commit is contained in:
parent
583ec5e295
commit
1bec3578f7
@ -350,6 +350,7 @@ def returnArrayInfo(output,controllerid,arrayid):
|
|||||||
|
|
||||||
def returnDiskInfo(output,controllerid):
|
def returnDiskInfo(output,controllerid):
|
||||||
arrayid = False
|
arrayid = False
|
||||||
|
sarrayid = 'Unknown'
|
||||||
diskid = False
|
diskid = False
|
||||||
oldenclid = False
|
oldenclid = False
|
||||||
enclid = False
|
enclid = False
|
||||||
@ -426,10 +427,10 @@ def returnDiskInfo(output,controllerid):
|
|||||||
fstate = str('Rebuilding (%d%%)' % (percent))
|
fstate = str('Rebuilding (%d%%)' % (percent))
|
||||||
|
|
||||||
if (( NestedLDTable[controllerid][int(arrayid)] == True) and (spanid != False)):
|
if (( NestedLDTable[controllerid][int(arrayid)] == True) and (spanid != False)):
|
||||||
arrayid = str(arrayid)+"s"+spanid
|
sarrayid = str(arrayid)+"s"+spanid
|
||||||
else:
|
else:
|
||||||
arrayid = str(arrayid)
|
sarrayid = str(arrayid)
|
||||||
table.append([arrayid, str(diskid), mtype, model, dsize, fstate , speed, temp, enclid, slotid, lsidid])
|
table.append([sarrayid, str(diskid), mtype, model, dsize, fstate , speed, temp, enclid, slotid, lsidid])
|
||||||
return table
|
return table
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user