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

Get v2_playbook_on_start working #13405

Merged
merged 1 commit into from
Dec 2, 2015
Merged

Conversation

sivel
Copy link
Member

@sivel sivel commented Dec 2, 2015

This PR does the following:

  • Move self._tqm.load_callbacks() earlier to ensure that v2_on_playbook_start can fire
  • Pass the playbook instance to v2_on_playbook_start
  • Add a _file_name instance attribute to the playbook

As it stands, v2_on_playbook_start is never run. This change ensures that it will, and also changes it's signature to pass in the playbook instance.

Additionally, due to how I plan on using this, it would be nice to also have the filename associated with the playbook instance available to the callback.

* Move self._tqm.load_callbacks() earlier to ensure that v2_on_playbook_start can fire
* Pass the playbook instance to v2_on_playbook_start
* Add a _file_name instance attribute to the playbook
@sivel
Copy link
Member Author

sivel commented Dec 2, 2015

This should also be cherry picked into stable-2.0 after merge to devel.

@jimi-c jimi-c added this to the v2 milestone Dec 2, 2015
jimi-c added a commit that referenced this pull request Dec 2, 2015
@jimi-c jimi-c merged commit 5f1f2ac into ansible:devel Dec 2, 2015
@jimi-c
Copy link
Member

jimi-c commented Dec 2, 2015

Merged to devel and stable-2.0, thanks!

@ansibot ansibot added bug This issue/PR relates to a bug. and removed bugfix_pull_request labels Mar 5, 2018
@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
bug This issue/PR relates to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants