]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-facts: fix ansible templating error for auto osd discovery
authorpinotelio <ahmadreza.mollapour@gmail.com>
Mon, 4 Apr 2022 09:48:14 +0000 (14:18 +0430)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 13 Apr 2022 12:26:35 +0000 (14:26 +0200)
commitf288364c5c268e61d49165704900e8e01ca643c8
treea48bce41a4a7ba143d13a75025aca20264a58c3b
parent1cd1fa05601384c5cd8d907b0581fdfaf125c098
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>
roles/ceph-facts/tasks/devices.yml