]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
devices: remove duplicated disks after the readlink resolve
authorSeena Fallah <seenafallah@gmail.com>
Mon, 13 Feb 2023 17:07:25 +0000 (18:07 +0100)
committerTeoman ONAY <tonay@redhat.com>
Fri, 17 Mar 2023 13:23:07 +0000 (14:23 +0100)
commitfcbb49c1acfa57758b0357d220101692131bef11
tree0ee7581f2f739394a595f1e344cb82a65555e6d0
parent8d6fdbebd665818679c6b1e115ee1cd3fef636bc
devices: remove duplicated disks after the readlink resolve

If a disk has a symlink it will be re-added to the devices lists one with resolved path and the other with a defined path.
We can rebuild the list from the readlink output cause readlink always return the correct path for all disks.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 1f7b3ac5a387485b0e36994cb00c28eac8ee7572)
roles/ceph-facts/tasks/devices.yml