From f017979f10477be78de2ff16dbbdb15d1170c08a Mon Sep 17 00:00:00 2001 From: "Vincent S. Cojot" Date: Fri, 17 Apr 2015 22:06:56 -0400 Subject: [PATCH] Minor issue (drive being added to an array). (Rev 1.51) --- wrapper-scripts/megaclisas-status | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wrapper-scripts/megaclisas-status b/wrapper-scripts/megaclisas-status index fbaf517..b9b9bf6 100755 --- a/wrapper-scripts/megaclisas-status +++ b/wrapper-scripts/megaclisas-status @@ -1,5 +1,5 @@ #!/usr/bin/python -# $Id: megaclisas-status,v 1.50 2015/04/17 19:37:53 root Exp $ +# $Id: megaclisas-status,v 1.51 2015/04/17 22:06:56 root Exp $ # # Written by Adam Cecile # Modified vy Vincent S. Cojot @@ -437,8 +437,10 @@ def returnUnconfDiskInfo(output,controllerid): # Drive temp is amongst the last few lines matched, decide here if we add information to the table.. if arrayid == False: if subfstate == 'Unconfigured': - ### print str(arrayid)+' '+str(diskid)+' '+str(olddiskid)+' '+str(state) - table.append([ mtype, model, dsize, fstate, speed, temp, enclid, slotid, lsidid]) + dbgprint('Unconfigured Disk: Arrayid: '+str(arrayid)+' DiskId: '+str(diskid)+' '+str(olddiskid)+' '+str(fstate)) + if subfstate == 'Online, Spun Up': + dbgprint('Online Disk: Arrayid: '+str(arrayid)+' DiskId: '+str(diskid)+' '+str(olddiskid)+' '+str(fstate)) + table.append([ mtype, model, dsize, fstate, speed, temp, enclid, slotid, lsidid]) return table cmd = '%s -adpCount -NoLog' % (megaclipath)