未验证 提交 551619a1 编写于 作者: A Amador Pahim

Merge branch 'narasimhan-v-lv_utils_pvs_regex_change'

Signed-off-by: NAmador Pahim <apahim@redhat.com>
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册