mirror of
https://github.com/eLvErDe/hwraid.git
synced 2025-07-25 23:04:44 +02:00
Patch by David Cole: Add notemp to unconfigured drives...
This commit is contained in:
parent
5514c5067a
commit
684adff3ca
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
# $Id: megaclisas-status,v 1.71 2017/04/04 18:45:52 root Exp root $
|
# $Id: megaclisas-status,v 1.72 2017/12/06 04:50:58 root Exp root $
|
||||||
#
|
#
|
||||||
# Written by Adam Cecile <gandalf@NOSPAM.le-vert.net>
|
# Written by Adam Cecile <gandalf@NOSPAM.le-vert.net>
|
||||||
# Modified by Vincent S. Cojot <vincent@NOSPAM.cojot.name>
|
# Modified by Vincent S. Cojot <vincent@NOSPAM.cojot.name>
|
||||||
@ -547,9 +547,12 @@ def returnUnconfDiskInfo(output,controllerid):
|
|||||||
elif re.match(r'Device Speed: .*$',line.strip()):
|
elif re.match(r'Device Speed: .*$',line.strip()):
|
||||||
speed = line.split(':')[1].strip()
|
speed = line.split(':')[1].strip()
|
||||||
elif re.match(r'Drive Temperature :.*$',line.strip()):
|
elif re.match(r'Drive Temperature :.*$',line.strip()):
|
||||||
temp = line.split(':')[1].strip()
|
|
||||||
temp = re.sub('\(.*\)', '', temp)
|
|
||||||
# Drive temp is amongst the last few lines matched, decide here if we add information to the table..
|
# Drive temp is amongst the last few lines matched, decide here if we add information to the table..
|
||||||
|
if (notempmode):
|
||||||
|
temp = 'N/A'
|
||||||
|
else:
|
||||||
|
temp = line.split(':')[1].strip()
|
||||||
|
temp = re.sub('\(.*\)', '', temp)
|
||||||
if arrayid == False:
|
if arrayid == False:
|
||||||
if subfstate == 'Unconfigured':
|
if subfstate == 'Unconfigured':
|
||||||
dbgprint('Unconfigured Disk: Arrayid: '+str(arrayid)+' DiskId: '+str(diskid)+' '+str(olddiskid)+' '+str(fstate))
|
dbgprint('Unconfigured Disk: Arrayid: '+str(arrayid)+' DiskId: '+str(diskid)+' '+str(olddiskid)+' '+str(fstate))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user