]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
fs2bs: fix wrong filter when setting osd_ids
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 25 May 2021 14:01:27 +0000 (16:01 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 25 May 2021 18:50:10 +0000 (20:50 +0200)
commitb2759c0c51d5e1841d06ff461b2cd7680063b05f
tree91eed54d7720a1a6c1d8e299a558e656f2f97596
parent11f953a15f508a8f934432697572a7add911dd71
fs2bs: fix wrong filter when setting osd_ids

using 'match' filter in that task will lead to bad behavior if I have
the following node names for instance:

- node1
- node11
- node111

with `selectattr('name', 'match', inventory_hostname)` it will match
'node1' along with 'node11' and 'node111'.

using 'equalto' filter will make sure we only match the target node.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1963066
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 0990ae41099d8b9d678f546fc8790033f421711f)
infrastructure-playbooks/filestore-to-bluestore.yml