diff --git a/lib/vdsm/storage/lvm.py b/lib/vdsm/storage/lvm.py index a421da778..084035f95 100644 --- a/lib/vdsm/storage/lvm.py +++ b/lib/vdsm/storage/lvm.py @@ -240,6 +240,7 @@ def __getattr__(self, attrName): USE_DEVICES = config.get("lvm", "config_method").lower() == "devices" + def _get_lvm_version(): packages = osinfo.package_versions() lvm_version = tuple( @@ -248,6 +249,7 @@ def _get_lvm_version(): ) return lvm_version + def _prepare_device_set(devs): devices = set(d.strip() for d in chain(devs, USER_DEV_LIST)) devices.discard('')