mirror of
https://github.com/eLvErDe/hwraid.git
synced 2025-07-28 00:04:01 +02:00
[megaclisas-status] some fixes
This commit is contained in:
parent
99ba05aabd
commit
989d89d2cc
@ -191,14 +191,14 @@ def returnBBUStatus(output):
|
||||
BBUStatus = ''
|
||||
tmpstr = ''
|
||||
for line in output:
|
||||
if re.match(r'^Battery Replacement required +:.*$',line.strip()):
|
||||
if re.match(r'^ *Battery Replacement required +:.*$',line.strip()):
|
||||
tmpstr = line.split(':')[1].strip()
|
||||
BBUStatus = re.sub(' +.*$', '', tmpstr)
|
||||
break
|
||||
if ( BBUStatus == 'Yes' ):
|
||||
return str('REPL')
|
||||
else:
|
||||
return str(BBUStatus)
|
||||
return str('Good')
|
||||
|
||||
def returnArrayNumber(output):
|
||||
i = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user