1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible
James Cammarata 81aa12eb1b Rework how the Conditional class deals with undefined vars
Previously, the Conditional class did a simple check when an
AnsibleUndefinedVariable error was raised to see if certain strings were
present. This patch tries to be smarter by evaluating the variable contained
in the error string and compared to the defined/not defined conditionals in
the conditional string.

This also modifies the UndefinedError message from HostVars slightly to
match the format returned jinja2 in general, making it easier to match the
error message in the Conditional code.

Fixes #18514
2016-11-22 08:29:58 -06:00
..
cli Python 3 fixes for ansible-doc. 2016-11-03 16:09:24 -07:00
compat Move py34 mock_open compat to compat/test/mock (#17157) 2016-08-19 18:11:24 -04:00
config Making the switch to v2 2015-05-03 21:47:26 -05:00
errors Add error info if tabs are found in the yaml (#18343) 2016-11-08 11:43:08 -05:00
executor Adding a persistent connection utility 2016-11-21 12:35:27 -06:00
galaxy Cast input role version to string before comparing to available versions (#18269) 2016-10-31 21:07:38 -04:00
inventory Properly sort groups by name as well as depth when getting vars 2016-11-18 22:57:52 -06:00
module_utils fixes issue with setting the terminal length (pager) in vyos (#18546) 2016-11-21 15:47:48 +00:00
modules Update submodule ref for mount fixes 2016-11-19 15:30:53 -08:00
parsing Fix 'ansible-vault edit' crash on changed nonascii 2016-11-16 15:14:07 -05:00
playbook Rework how the Conditional class deals with undefined vars 2016-11-22 08:29:58 -06:00
plugins Fix setfacl for Solaris with POSIX acl support. 2016-11-21 13:19:41 -08:00
template always template when called from template (#18490) 2016-11-15 15:16:46 -05:00
utils Network docs fragments: fix copy paste errors (#18564) 2016-11-21 11:36:32 +00:00
vars Rework how the Conditional class deals with undefined vars 2016-11-22 08:29:58 -06:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py Adding a persistent connection utility 2016-11-21 12:35:27 -06:00
release.py Bumping devel version to 2.3.0 2016-10-03 11:46:31 -05:00
test-requirements.txt Making the switch to v2 2015-05-03 21:47:26 -05:00