Commit a17a7623 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix backend.NodeVolumes handling of LVM output

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
parent 4cbd4462
......@@ -309,7 +309,8 @@ def NodeVolumes():
'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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment