Skip to content

Commit

Permalink
Add lvm2 version check to pass the --fs flag along
Browse files Browse the repository at this point in the history
Signed-off-by: Brooklyn Dewolf <[email protected]>
  • Loading branch information
BrooklynDewolf committed May 23, 2024
1 parent 23ee0ba commit 1dbee48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/vdsm/storage/lvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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('')
Expand Down

0 comments on commit 1dbee48

Please sign in to comment.