lvm->init_cache: fix incorrect max splits

This commit is contained in:
Nicolai Søborg 2017-09-13 18:50:02 +02:00
parent c30131633b
commit 9d797cc864
No known key found for this signature in database
GPG Key ID: C172889D875D6BCE

View File

@ -159,7 +159,7 @@ def init_cache(log=logging.getLogger('qubes.storage.lvm')):
for line in out.splitlines():
line = line.decode().strip()
pool_name, pool_lv, name, size, usage_percent, attr, \
origin = line.split(';', 7)
origin = line.split(';', 6)
if '' in [pool_name, pool_lv, name, size, usage_percent]:
continue
name = pool_name + "/" + name