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

Don't skip conditional exception on includes #39377

Merged
merged 3 commits into from
Apr 26, 2018
Merged

Conversation

sivel
Copy link
Member

@sivel sivel commented Apr 26, 2018

SUMMARY

In fc3a444 we added special handling of conditional exceptions on includes due to use with tags.

The specific scenarios in #12843 no longer trigger the fix from the above commit due to 2c20579

Fixes #37892

This PR combines and supersedes:

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

lib/ansible/executor/task_executor.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:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Apr 26, 2018
@sivel sivel removed the needs_triage Needs a first human triage before being processed. label Apr 26, 2018
@sivel
Copy link
Member Author

sivel commented Apr 26, 2018

Unstable test, unrelated to this PR.

@sivel sivel merged commit 2f51616 into ansible:devel Apr 26, 2018
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 12, 2018
* task_executor.py: Raise 'conditional exception' in case of 'include_*'

Fixes ansible#33632

Signed-off-by: Patrick Ringl <patrick_@freenet.de>

* Re-organize tests, add static include test with undefined var

* Remove unnecessary conditional
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 14, 2018
* task_executor.py: Raise 'conditional exception' in case of 'include_*'

Fixes ansible#33632

Signed-off-by: Patrick Ringl <patrick_@freenet.de>

* Re-organize tests, add static include test with undefined var

* Remove unnecessary conditional
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 14, 2018
* task_executor.py: Raise 'conditional exception' in case of 'include_*'

Fixes ansible#33632

Signed-off-by: Patrick Ringl <patrick_@freenet.de>

* Re-organize tests, add static include test with undefined var

* Remove unnecessary conditional
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 15, 2018
* task_executor.py: Raise 'conditional exception' in case of 'include_*'

Fixes ansible#33632

Signed-off-by: Patrick Ringl <patrick_@freenet.de>

* Re-organize tests, add static include test with undefined var

* Remove unnecessary conditional
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 15, 2018
* task_executor.py: Raise 'conditional exception' in case of 'include_*'

Fixes ansible#33632

Signed-off-by: Patrick Ringl <patrick_@freenet.de>

* Re-organize tests, add static include test with undefined var

* Remove unnecessary conditional
ilicmilan pushed a commit to ilicmilan/ansible that referenced this pull request Nov 7, 2018
* task_executor.py: Raise 'conditional exception' in case of 'include_*'

Fixes ansible#33632

Signed-off-by: Patrick Ringl <patrick_@freenet.de>

* Re-organize tests, add static include test with undefined var

* Remove unnecessary conditional
@ansible ansible locked and limited conversation to collaborators Apr 27, 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:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

when: condition with an undefined variable is always true in include_tasks
3 participants