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
Handle incorrect data type in list lookup plugin #35483
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansibot
added
bugfix_pull_request
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.
labels
Jan 29, 2018
The test
The test
|
ansibot
added
the
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
label
Jan 29, 2018
Akasurde
removed
the
needs_triage
Needs a first human triage before being processed.
label
Jan 30, 2018
Sanity failures are valid. Integration test failures unrelated. |
mattclay
added
the
ci_verified
Changes made in this PR are causing tests to fail.
label
Jan 30, 2018
sivel
approved these changes
Jan 30, 2018
Other than the sanity tests, the changes look good. |
ansibot
removed
ci_verified
Changes made in this PR are causing tests to fail.
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
labels
Jan 30, 2018
ansibot
added
needs_rebase
https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
labels
Feb 7, 2018
ansibot
added
bug
This issue/PR relates to a bug.
and removed
bugfix_pull_request
labels
Mar 2, 2018
Fixes ansible#35481 Signed-off-by: Adam Miller <admiller@redhat.com>
Signed-off-by: Adam Miller <admiller@redhat.com>
Signed-off-by: Adam Miller <admiller@redhat.com>
ansibot
removed
needs_rebase
https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
labels
Mar 16, 2018
ansibot
added
the
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
label
Mar 24, 2018
rebuild_merge |
ansibot
added
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
and removed
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
labels
May 17, 2018
rebuild_merge |
shippable instabilities are unrelated, merging. |
achinthagunasekara
pushed a commit
to achinthagunasekara/ansible
that referenced
this pull request
May 23, 2018
handle incorrect data type in list lookup plugin Fixes ansible#35481 test to ensure that loops properly handle incorrect datatypes Signed-off-by: Adam Miller <admiller@redhat.com>
jacum
pushed a commit
to jacum/ansible
that referenced
this pull request
Jun 26, 2018
handle incorrect data type in list lookup plugin Fixes ansible#35481 test to ensure that loops properly handle incorrect datatypes Signed-off-by: Adam Miller <admiller@redhat.com>
ilicmilan
pushed a commit
to ilicmilan/ansible
that referenced
this pull request
Nov 7, 2018
handle incorrect data type in list lookup plugin Fixes ansible#35481 test to ensure that loops properly handle incorrect datatypes Signed-off-by: Adam Miller <admiller@redhat.com>
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.6
This issue/PR affects Ansible v2.6
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Fixes #35481
Appropriately handle the scenario where someone passes an incorrect data type to
with_list
or otherwise to thelist
lookup plugin and gracefully fail the play instead of causing aRuntimeError
.Also added integration tests to ensure we don't have this happen again.
ISSUE TYPE
COMPONENT NAME
lib/ansible/executor/task_executor.py
ANSIBLE VERSION