diff --git a/avocado/utils/lv_utils.py b/avocado/utils/lv_utils.py index 3a119e161c6a22dadf3b6f63c0280495307b1b78..545f42c23838490eb0b7a6a7171e44650fe59060 100644 --- a/avocado/utils/lv_utils.py +++ b/avocado/utils/lv_utils.py @@ -153,7 +153,7 @@ def vg_ramdisk_cleanup(ramdisk_filename=None, vg_ramdisk_dir=None, """ errs = [] if vg_name is not None: - loop_device = re.search(r"([/\w]+) +%s +lvm2" % vg_name, + loop_device = re.search(r"([/\w-]+) +%s +lvm2" % vg_name, process.run("pvs", sudo=True).stdout) if loop_device is not None: loop_device = loop_device.group(1)