You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some jinja templates that I make use of variables that may or may not be defined, but have Jinja if/elif statements that deal with this correctly. Using git bisect I was able to track down the first bad commit to this:
Fix for saving conditionals in variable expressions.
After this commit creation of the template fails with this error:
fatal: [127.0.0.1] => {'msg': "One or more undefined variables: 'dict' object has no attribute 'facts'", 'failed': True}
fatal: [127.0.0.1] => {'msg': "One or more undefined variables: 'dict' object has no attribute 'facts'", 'failed': True}
even when the "error_on_undefined_vars = False" is set in the ansible.cfg file. Here is an example of such template:
I have some jinja templates that I make use of variables that may or may not be defined, but have Jinja if/elif statements that deal with this correctly. Using git bisect I was able to track down the first bad commit to this:
62b39d3 is the first bad commit
commit 62b39d3
Author: Michael DeHaan michael@ansibleworks.com
Date: Sun Jul 21 08:52:00 2013 -0400
After this commit creation of the template fails with this error:
fatal: [127.0.0.1] => {'msg': "One or more undefined variables: 'dict' object has no attribute 'facts'", 'failed': True}
fatal: [127.0.0.1] => {'msg': "One or more undefined variables: 'dict' object has no attribute 'facts'", 'failed': True}
even when the "error_on_undefined_vars = False" is set in the ansible.cfg file. Here is an example of such template:
Please let me know if you need any more information.
The text was updated successfully, but these errors were encountered: