]> 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>
Tue, 28 Feb 2023 13:50:49 +0000 (14:50 +0100)
commit1f7b3ac5a387485b0e36994cb00c28eac8ee7572
treec5599440fe58796888db430a429b6e1ac2d1fdd7
parent32b56785116eb47297df282bab1543507fc62b43
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>
roles/ceph-facts/tasks/devices.yml