Very minor bugfixes (Rev 1.13)

This commit is contained in:
Vincent S. Cojot 2015-01-14 20:33:23 -05:00
parent b25b140994
commit 43655abb1e

View File

@ -1,5 +1,5 @@
#!/usr/bin/python
# $Id: megaclisas-status,v 1.12 2015/01/14 20:22:48 root Exp $
# $Id: megaclisas-status,v 1.13 2015/01/14 20:33:23 root Exp $
import os
import re
@ -283,7 +283,7 @@ while controllerid < controllernumber:
totalunconfdrivenumber += returnUnconfDriveNumber(output)
controllerid += 1
if ( totalunconfdrivenumber > 0):
if totalunconfdrivenumber:
print '-- Unconfigured Disks information --'
print '-- ID\t| Model | Status | Speed | Temperature | Slot ID | LSI Device ID '
@ -299,7 +299,7 @@ if ( totalunconfdrivenumber > 0):
output = getOutput(cmd)
arraydisk = returnUnconfDiskInfo(output,controllerid)
for array in arraydisk:
print 'c'+str(controllerid)+'\t| '+array[1]+' | '+array[0]+' | '+array[2]+' | '+array[3]+' | ID: \'['+array[4]+':'+array[5]+']\' | '+array[6]
print 'c'+str(controllerid)+'uXpY\t| '+array[1]+' | '+array[0]+' | '+array[2]+' | '+array[3]+' | ID: \'['+array[4]+':'+array[5]+']\' | '+array[6]
controllerid += 1
print ''