mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Convert symlinks specified in pvs to actual path
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user