mirror of https://github.com/ceph/ceph-ansible.git
ceph-facts: fix ansible templating error for auto osd discovery
This commit fixes templating error that occurs when using auto osd discovery. Getting the len before converting the result to a list causes "object of type generator has no len()" error.
Signed-off-by: pinotelio <ahmadreza.mollapour@gmail.com>
(cherry picked from commit f288364c5c
)
pull/7149/head
parent
0d6763d4ef
commit
bc84a1cc31
|
@ -87,5 +87,5 @@
|
|||
- item.value.sectors != "0"
|
||||
- item.value.partitions|count == 0
|
||||
- item.value.holders|count == 0
|
||||
- ansible_facts['mounts'] | selectattr('device', 'equalto', device) | length == 0
|
||||
- ansible_facts['mounts'] | selectattr('device', 'equalto', device) | list | length == 0
|
||||
- item.key is not match osd_auto_discovery_exclude
|
||||
|
|
Loading…
Reference in New Issue