def _parse_fmdump(output):
 result = []
 output = output.split('\n')
 header = [field for field in output[0].lower().split(' ') if field]
 del output[0]
 for entry in output:
  entry = [item for item in entry.split(' ') if item]
  entry = (['{0} {1} {2}'.format(entry[0], entry[1], entry[2])] + entry[3:])
  fault = OrderedDict()
  for field in header:
   fault[field] = entry[header.index(field)]
  result.append(fault)
 return result

def _parse_fmdump ( output ) : result = [ ] output = output . split ( '\n' ) header = [ field for field in output [ 0 ] . lower ( ) . split ( ' ' ) if field ] del output [ 0 ] for entry in output : entry = [ item for item in entry . split ( ' ' ) if item ] entry = ( [ '{0} {1} {2}' . format ( entry [ 0 ] , entry [ 1 ] , entry [ 2 ] ) ] + entry [ 3 : ] ) fault = OrderedDict ( ) for field in header : fault [ field ] = entry [ header . index ( field ) ] result . append ( fault ) return result
parses fmdump output .