mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 03:53:59 -07:00
remove bare var handling in conditionals (#51030)
* remove bare var handling in conditionals this makes top level and multilevel vars (dicts keys) behave the same it will require adding |bool for 'string comparissons' in indirect templates - added new tests to ensure uniform handling - switched to 'is' testing for status - changed warning to 'conditional' as 'when:' is not only place it gets triggered * updated to include toggle and deprecation * fix deprecated * updated tests to handle toggle * fixed typo and added note about the future
This commit is contained in:
parent
0493ef359a
commit
4a0fceaa3b
8 changed files with 589 additions and 374 deletions
3
changelogs/fragments/conditionals_fix.yml
Normal file
3
changelogs/fragments/conditionals_fix.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
bugfixes:
|
||||
- remove bare var handling from conditionals (not needed since we removed bare vars from `with_` loops) to normalize handling of
|
||||
variable values, no matter if the string value comes from a top level variable or from a dictionary key or subkey
|
Loading…
Add table
Add a link
Reference in a new issue