From f7a2e7146b65b202b1b33de1cbf9c88f96524570 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 10 Mar 2015 00:07:24 +0000 Subject: [PATCH] Handle arrays which don't report a drive count --- wrapper-scripts/megaclisas-status | 1 + 1 file changed, 1 insertion(+) diff --git a/wrapper-scripts/megaclisas-status b/wrapper-scripts/megaclisas-status index aa6e3dc..5dd3e0b 100755 --- a/wrapper-scripts/megaclisas-status +++ b/wrapper-scripts/megaclisas-status @@ -66,6 +66,7 @@ def returnArrayInfo(output,controllerid,arrayid): id = 'c'+str(controllerid)+'u'+str(arrayid) operationlinennumber = False linenumber = 0 + ldpdcount = 0 for line in output: if re.match(r'Number Of Drives\s*((per span))?:.*[0-9]+$',line.strip()):