Ticket #20: patch
| File patch, 685 bytes (added by gandalf, 23 months ago) |
|---|
-
3ware-status
old new 36 36 lines = [] 37 37 for line in output: 38 38 if re.match(r'^[p][0-9]+\s.*$',line.strip()): 39 lines.append(line.split()) 39 # Shoudl contain something like 'u0' 40 # '-' means the drive doesn't belong to any array 41 # If is NOT PRESENT too, it just means this is an empty port 42 if not line.split()[2].strip() == '-' and not line.split()[1].strip() == 'NOT-PRESENT': 43 lines.append(line.split()) 40 44 if fake_failure: 41 45 lines[0][1] = 'NOT PRESENT' 42 46 return lines

