Skip to content
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

Display the string which is causing an exception to be raised. #14445

Merged
merged 1 commit into from Feb 12, 2016

Conversation

marcpo
Copy link

@marcpo marcpo commented Feb 11, 2016

In the ansible template module, when there is an error while
expanding a templated string, displaying the string causing the
exception is very useful.

I had a missing closing } in a string from the group_vars/all file. The error only happened when I was trying to access a hostvars variable in a playbook. With this error message, I found the problem right away.

In the ansible template module, when there is an error while
expanding a templated string, displaying the string causing the
exception is very useful.
jimi-c added a commit that referenced this pull request Feb 12, 2016
…ception

Display the string which is causing an exception to be raised.
@jimi-c jimi-c merged commit c485981 into ansible:devel Feb 12, 2016
@jimi-c
Copy link
Member

jimi-c commented Feb 12, 2016

Merged, thanks!

@marcpo marcpo deleted the maint/display_string_causing_exception branch February 12, 2016 11:38
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants