This is the same fix as for GetVolumeList.
I've checked manually and all other places that call lvm commands are
already checking the output validity in terms of correct number of
fields.
Reviewed-by: ultrotter
'vg': line[3].strip(),
}
- return [map_line(line.split('|')) for line in result.stdout.splitlines()]
+ return [map_line(line.split('|')) for line in result.stdout.splitlines()
+ if line.count('|') >= 3]
def BridgesExist(bridges_list):