app: fix LVM default storage pool

This commit is contained in:
Marek Marczykowski-Górecki 2017-07-30 14:57:26 +02:00
parent 38bc751b97
commit 71a1be30e7
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -587,7 +587,8 @@ def _default_pool(app):
thin_volumes = subprocess.check_output(
['lvs', '--select', 'pool_lv=' + thin_pool,
'-o', 'lv_kernel_major,lv_kernel_minor', '--noheadings'])
if any((str(root_major), str(root_minor)) == thin_vol.split()
thin_volumes = thin_volumes.decode()
if any([str(root_major), str(root_minor)] == thin_vol.split()
for thin_vol in thin_volumes.splitlines()):
return pool
# not a thin volume? look for file pools