From 989d89d2ccb0004e4a9d9f954376729028d5e4c1 Mon Sep 17 00:00:00 2001 From: "Vincent S. Cojot" Date: Thu, 5 Nov 2015 12:55:08 -0500 Subject: [PATCH] [megaclisas-status] some fixes --- wrapper-scripts/megaclisas-status | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrapper-scripts/megaclisas-status b/wrapper-scripts/megaclisas-status index e234f22..f062761 100755 --- a/wrapper-scripts/megaclisas-status +++ b/wrapper-scripts/megaclisas-status @@ -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