]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
facts: fix auto_discovery exclude
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 25 Feb 2019 23:07:01 +0000 (00:07 +0100)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Tue, 26 Feb 2019 03:16:33 +0000 (03:16 +0000)
commit8f420072727441fd6e6a22a15cc9034a3a678cae
tree0ce3cc77169d1b29a17079bc978e38ab1f6ec3ca
parentc43b30e3ceebabb5d2928f49c0f03e31bd9a5c68
facts: fix auto_discovery exclude

the previous approach was wrong.
checking if `item.key` is in `osd_auto_discovery_exclude` (`['dm-',
'loop']`) is incorrect because it will obviously not match. Therefore,
the condition will return `True` whatever the device we are checking.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
group_vars/all.yml.sample
group_vars/rhcs.yml.sample
roles/ceph-defaults/defaults/main.yml
roles/ceph-facts/tasks/facts.yml