-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
boolean interpreted as dict, 2.0 #12206
Comments
+1 this is happening to me too |
Poking at this a bit more, I think the problem is actually something with the jinja2 filtering or
Run:
|
Using |
Out of the two changes in 54dbfba, it's the change to lib/ansible/vars/init.py that breaks this. |
Ok, the bug is that the dicts passed to _combine_vars() are sometimes not dicts but collections.defaultdict() instances. The previous code would return a regular dict, my new code now returns a collections.defaultdict() in that case. Fix coming soon. |
Closing This TicketHi! We believe the above commit should resolve this problem for you. This will also be included in the next major release. If you continue seeing any problems related to this issue, or if you have any further questions, please let us know by stopping by one of the two mailing lists, as appropriate:
Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular issue is resolved. Thank you! |
Likewise, now works for me. Thanks! |
I have a dict:
1.9.2 debug:
2.0 output:
Then:
The code
users_create_homedirs is set as yes is the defaults/main.yml
The code works as expected in 1.9
The text was updated successfully, but these errors were encountered: