-
Notifications
You must be signed in to change notification settings - Fork 142
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
k8s: handle fail_json
API from inventory plugin
#59
Conversation
Codecov Report
@@ Coverage Diff @@
## stable-1.2 #59 +/- ##
=============================================
Coverage ? 36.13%
=============================================
Files ? 4
Lines ? 786
Branches ? 155
=============================================
Hits ? 284
Misses ? 453
Partials ? 49 Continue to review full report at Codecov.
|
recheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
77775bf
to
6cc0630
Compare
* inventory plugin does not have module object so fail_json will not work. Use AnsibleError instead of ``fail_json`` Fixes: ansible-collections#57 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still need to backport the community.kubernetes -> kubernetes.core changes to this branch, so for now it should be fine to remain as community.kubernetes. As soon as this gets merged I'll do that backport.
Today is July. There were still no fixes in versions 1.x or 2.x. @gravesm could you backport these fixes to main branch? |
@JiffsMaverick Are you seeing an error? If so, could you create a new issue with the collection version and steps to reproduce? |
@gravesm Sorry, I didn't check it carefully. I checked again. There is a fix in both 1.x and 2.x. BUT! The problem is that version 1.2.2 (or 1.3.0?) hasn't been released yet. And version 2.1.1 is not included in Ansible 3/4 yet. Ok, I'll wait for the new releases... |
SUMMARY
will not work. Use AnsibleError instead of
fail_json
Fixes: #57
Signed-off-by: Abhijeet Kasurde akasurde@redhat.com
ISSUE TYPE
COMPONENT NAME
changelogs/fragments/fail_json.yml
plugins/inventory/k8s.py
plugins/module_utils/common.py
plugins/module_utils/exceptions.py