Ticket #7: aacraid-status.2.patch
| File aacraid-status.2.patch, 1.1 KB (added by consult@…, 3 years ago) |
|---|
-
aacraid-status
old new 64 64 if re.match(r'^Segment [0-9]+\s+: .*$',line.strip()): 65 65 splitter = re.compile('(\(.*\))') 66 66 line = line.split(':')[1] 67 members.append(splitter.split(line)[1].strip('(').strip(')')) 67 if re.match(r'^ Missing',line): 68 members.append('?,?') 69 else: 70 members.append(splitter.split(line)[1].strip('(').strip(')')) 71 if re.match(r'^Group [0-9], Segment [0-9]+\s+: .*$',line.strip()): 72 splitter = re.compile('(\(.*\))') 73 line = line.split(':')[1] 74 if re.match(r'^ Missing',line): 75 members.append('?,?') 76 else: 77 members.append(splitter.split(line)[1].strip('(').strip(')')) 68 78 return [type,status,size,members] 69 79 70 80 def returnControllerTasks(output): … … 188 198 189 199 if bad: 190 200 print '\nThere is at least one disk/array in a NOT OPTIMAL state.' 201 print '\nUse "arcconf GETCONFIG [1-9]" to get details.' 191 202 sys.exit(1)


