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

Ensure we don't overwrite handlers from include_role when loading a play #39563

Merged
merged 1 commit into from
May 1, 2018

Conversation

sivel
Copy link
Member

@sivel sivel commented May 1, 2018

SUMMARY

Ensure we don't overwrite handlers from include_role when loading a play

Fixes #18140

In IncludeRole.get_block_list we add the handlers from a role directly to the play, later we run _load_handlers which, if the play has handlers of it's own, overwrites the handlers added from include_role.

I debated overloading what FieldAttribute.extend means, and adding some functionality into load_data to use that, but decided to just handle it in _load_handlers.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

lib/ansible/playbook/play.py

ANSIBLE VERSION
2.6
ADDITIONAL INFORMATION

@ansibot ansibot added bug This issue/PR relates to a bug. needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels May 1, 2018
@bcoca bcoca removed the needs_triage Needs a first human triage before being processed. label May 1, 2018
@sivel sivel added this to Triage in include and import issues via automation May 1, 2018
@sivel sivel moved this from Triage to In Progress in include and import issues May 1, 2018
@sivel sivel merged commit 6acdc36 into ansible:devel May 1, 2018
include and import issues automation moved this from In Progress to Done May 1, 2018
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 12, 2018
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 14, 2018
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 14, 2018
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 15, 2018
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 15, 2018
ilicmilan pushed a commit to ilicmilan/ansible that referenced this pull request Nov 7, 2018
@ansible ansible locked and limited conversation to collaborators May 7, 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. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
3 participants