Merge pull request #217 from wimnat/issue-197

Convert symlinks specified in pvs to actual path
reviewable/pr18780/r1
Brian Coca 10 years ago
commit 21fce8ac73

@ -135,7 +135,9 @@ def main():
elif state == 'present': elif state == 'present':
module.fail_json(msg="No physical volumes given.") 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': if state=='present':
### check given devices ### check given devices

Loading…
Cancel
Save