-
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
'invocation' to use from callback plugin is missing in a result. #12869
Comments
Working on this now. |
I think this branch should fix the issue for you now: https://github.com/ansible/ansible/commits/invocation-fix I've discovered some ways in which this behaving differently depending on which module is being invoked, though, so I'm going to be doing some more work on this before it gets merged to devel. |
Okay, the above set of commits should fix invocation's presence for all modules! Test it out and open a new bug if it doesn't work for some reason. Closing This TicketHi! We believe recent commits (likely detailed above) should resolve this question or 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 Thank you! |
I confirmed my callback plugin works now. Thank you so much! |
Commit 2e87c1f breaks the
And indeed, the |
* Fix the task_vars parameter to not default to a mutable type (dict) * Implement invocation in the base class's run() method have each action module call the run() method's implemention in the base class. * Return values from the action plugins' run() method takes the return value from the base class run() method into account so that invocation makes its way to the output. Fixes ansible#12869
Issue Type:
Bug Report or Feature Idea
Ansible Version:
ansible 2.0.0 (09899b7, latest head)
Ansible Configuration:
Nothing special
Environment:
Mac
Summary:
'invocation'
is not produced in a callback plugin,result._result
Because, I want to log a module name by using callback plugin.
'invocation'
is always included in a result at v1, but it seems v2 not include it. (I want to run datadog-callback on v2)I found @jimi-c said
"I believe invocation was always in the output"
at issue #12787. Could you add invocation into a result?Steps To Reproduce:
prepare callback module.
Expected Results:
True
Actual Results:
False
The text was updated successfully, but these errors were encountered: