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

plugin_filter: check for type error #46664

Merged
merged 1 commit into from Oct 30, 2018
Merged

plugin_filter: check for type error #46664

merged 1 commit into from Oct 30, 2018

Conversation

Akasurde
Copy link
Member

@Akasurde Akasurde commented Oct 9, 2018

SUMMARY

Parsing plugin filter may raise TypeError, gracefully handle this exception
and let user know about the syntax error in plugin filter file.

Fixes: #46658

Signed-off-by: Abhijeet Kasurde akasurde@redhat.com

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

lib/ansible/plugins/loader.py

ANSIBLE VERSION
2.8-devel

@Akasurde Akasurde requested a review from abadger October 9, 2018 04:00
@ansibot ansibot added affects_2.8 This issue/PR affects Ansible v2.8 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. labels Oct 9, 2018
@Akasurde Akasurde removed the needs_triage Needs a first human triage before being processed. label Oct 9, 2018
@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Oct 9, 2018
@ansibot ansibot added community_review In order to be merged, this PR must follow the community review workflow. 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 Oct 25, 2018
@Akasurde Akasurde force-pushed the i46658 branch 2 times, most recently from 2cb23c0 to ebd0785 Compare October 26, 2018 17:32
@ansibot ansibot removed 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 Oct 26, 2018
@abadger
Copy link
Contributor

abadger commented Oct 26, 2018

Code looks good +1. If you want to backport this, it will need a changelog entry so you might as well add one here before you merge to devel. makes cherry-picking easier.

* Parsing plugin filter may raise TypeError, gracefully handle this exception
and let user know about the syntax error in plugin filter file.

* Test for plugin_filtering

Fixes: ansible#46658

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed community_review In order to be merged, this PR must follow the community review workflow. labels Oct 27, 2018
@Akasurde Akasurde merged commit b32b411 into ansible:devel Oct 30, 2018
@Akasurde Akasurde deleted the i46658 branch October 30, 2018 12:55
Akasurde added a commit to Akasurde/ansible that referenced this pull request Oct 30, 2018
* Parsing plugin filter may raise TypeError, gracefully handle this exception
and let user know about the syntax error in plugin filter file.

* Test for plugin_filtering

Fixes: ansible#46658

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit b32b411)
abadger pushed a commit that referenced this pull request Oct 31, 2018
* Parsing plugin filter may raise TypeError, gracefully handle this exception
and let user know about the syntax error in plugin filter file.

* Test for plugin_filtering

Fixes: #46658

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit b32b411)
Tomorrow9 pushed a commit to Tomorrow9/ansible that referenced this pull request Dec 4, 2018
* Parsing plugin filter may raise TypeError, gracefully handle this exception
and let user know about the syntax error in plugin filter file.

* Test for plugin_filtering

Fixes: ansible#46658

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
@ansible ansible locked and limited conversation to collaborators Jul 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.8 This issue/PR affects Ansible v2.8 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ansible not work and show a bug: 'NoneType' object is not iterable
3 participants