Project

General

Profile

« Previous | Next » 

Revision 78991449

Added by David Sorber almost 8 years ago

Adjust parsing of mdadm output as apparently the format has changed slightly. Perhaps a more dynamic style of parsing should be used.

View differences:

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))

Also available in: Unified diff