On Wed, 21 Jun 2023 11:08:16 +0000 Aharonu <[email protected]> wrote:
> The conditional check 'data_done' failed. The error was: Unexpected
> templating type error occurred on ({{ variable_data|
> selectattr('percent_complete', 'ne', 100) | length == 0 }}): object of type
> 'generator' has no len()
Add the explicit conversion to *list*
data_done: "{{ variable_data|
selectattr('percent_complete', 'ne', 100)|
list|length == 0 }}"
This has already been fixed. If you can update the latest version.
--
Vladimir Botka
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/20230621182935.45d476aa%40gmail.com.
pgpJDifScjNp8.pgp
Description: OpenPGP digital signature
