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

Use updated task, instead of original, non-merged included_file._task #39762

Merged
merged 2 commits into from
May 7, 2018

Conversation

sivel
Copy link
Member

@sivel sivel commented May 4, 2018

SUMMARY

Use updated task, instead of original, non-merged included_file._task. Fixes #39637

Before this change, we were using included_file._task in our call to get_vars. However, what is missing here, is that included_file._args aren't merged into included_file._task.vars. _args is merged into vars in _copy_included_file which is then later used as the parent of the new block.

Use new_block._parent instead, which is the merged copy.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

lib/ansible/plugins/strategy/linear.py

ANSIBLE VERSION
2.6
ADDITIONAL INFORMATION

@sivel sivel added this to Triage in include and import issues via automation May 4, 2018
@sivel sivel moved this from Triage to In Progress in include and import issues May 4, 2018
@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 4, 2018
@bcoca bcoca removed the needs_triage Needs a first human triage before being processed. label May 4, 2018
@bcoca bcoca added this to To Do in 2.5.x blocker list via automation May 4, 2018
@ansibot ansibot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label May 4, 2018
@sivel sivel merged commit efff753 into ansible:devel May 7, 2018
include and import issues automation moved this from In Progress to Done May 7, 2018
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 12, 2018
…ansible#39762)

* Used updated task, instead of original, non-merged included_file._task. Fixes ansible#39637

* Add changelog entry
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 14, 2018
…ansible#39762)

* Used updated task, instead of original, non-merged included_file._task. Fixes ansible#39637

* Add changelog entry
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 14, 2018
…ansible#39762)

* Used updated task, instead of original, non-merged included_file._task. Fixes ansible#39637

* Add changelog entry
tonal pushed a commit to tonal/ansible that referenced this pull request May 15, 2018
…ansible#39762)

* Used updated task, instead of original, non-merged included_file._task. Fixes ansible#39637

* Add changelog entry
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 15, 2018
…ansible#39762)

* Used updated task, instead of original, non-merged included_file._task. Fixes ansible#39637

* Add changelog entry
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 15, 2018
…ansible#39762)

* Used updated task, instead of original, non-merged included_file._task. Fixes ansible#39637

* Add changelog entry
@nitzmahone nitzmahone removed this from To Do in 2.5.x blocker list May 30, 2018
ilicmilan pushed a commit to ilicmilan/ansible that referenced this pull request Nov 7, 2018
…ansible#39762)

* Used updated task, instead of original, non-merged included_file._task. Fixes ansible#39637

* Add changelog entry
@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. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
Development

Successfully merging this pull request may close these issues.

templated tag variable is undefined in include_tasks when used in a loop
3 participants