1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Ensure we raise the exception caught _post_validate_environment->_parse_env_kv. Fixes #41322 (#41411)

This commit is contained in:
Matt Martz 2018-06-13 11:22:07 -05:00 committed by Brian Coca
parent 5b0bb91c72
commit 3832d04611

View file

@ -280,7 +280,8 @@ class Task(Base, Conditional, Taggable, Become):
except AnsibleUndefinedVariable as e:
if self.action in ('setup', 'gather_facts') and 'ansible_env' in to_native(e):
# ignore as fact gathering sets ansible_env
pass
return
raise
if isinstance(value, list):
for env_item in value: