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>
pull/7148/head
pinotelio 2022-04-04 14:18:14 +04:30 committed by Guillaume Abrioux
parent 1cd1fa0560
commit f288364c5c
1 changed files with 1 additions and 1 deletions

View File

@ -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