From adb1f0a1c8b8d60f5162e3121275decdaedfbf33 Mon Sep 17 00:00:00 2001 From: Rob White Date: Thu, 22 Jan 2015 13:37:37 +1100 Subject: [PATCH] Convert symlinks specified in pvs to actual path --- system/lvg.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/lvg.py b/system/lvg.py index e568e9df677..295ee24e3c6 100644 --- a/system/lvg.py +++ b/system/lvg.py @@ -135,7 +135,9 @@ def main(): elif state == 'present': module.fail_json(msg="No physical volumes given.") - + # LVM always uses real paths not symlinks so replace symlinks with actual path + for idx, dev in enumerate(dev_list): + dev_list[idx] = os.path.realpath(dev) if state=='present': ### check given devices