Revision 78991449
Added by David Sorber almost 8 years ago
| software/misc/checker.py | ||
|---|---|---|
|
raw_out = cmd_out.decode('utf-8').strip().split('\n')
|
||
|
|
||
|
# Parse out the 'state' line
|
||
|
raid_state = raw_out[11][18:].strip()
|
||
|
raid_state = raw_out[11][20:].strip()
|
||
|
if raid_state != 'clean':
|
||
|
errors.append('/dev/{:s} not in "clean" state ({:s})'
|
||
|
.format(device, raid_state))
|
||
Adjust parsing of mdadm output as apparently the format has changed slightly. Perhaps a more dynamic style of parsing should be used.