Closed nikos445 closed 6 months ago
Ansible Form JQ filtering always results to " " (empty string) when the result of JQ filtering is a boolean and results in false
e.g. Example: --> { data: [ false, false, false, false ] }
filtering with jq --> .data | any(. == true) --> will result in "" if false and true if there is any true inside the data array.
Take a look on result here... This jq returns an array with false as example above.
adding filter like --> .data | any(. == true) | tostring will result to "false" but its not boolean.
fixed in 5.0.1
Ansible Form JQ filtering always results to " " (empty string) when the result of JQ filtering is a boolean and results in false
e.g. Example: --> { data: [ false, false, false, false ] }
filtering with jq --> .data | any(. == true) --> will result in "" if false and true if there is any true inside the data array.