osd: avoid using non desired loop device in autodiscovery

This will prevent ceph-ansible from using a loop device while it
shouldn't in auto_discovery mode.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/2154/head
Guillaume Abrioux 2017-11-09 10:26:24 +01:00
parent b9ee96b56a
commit 43975a7332
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@
- osd_auto_discovery - osd_auto_discovery
- ansible_devices is defined - ansible_devices is defined
- item.value.removable == "0" - item.value.removable == "0"
- item.value.sectors != "0"
- item.value.partitions|count == 0 - item.value.partitions|count == 0
- item.value.holders|count == 0 - item.value.holders|count == 0
- "'dm-' not in item.key" - "'dm-' not in item.key"