-
Notifications
You must be signed in to change notification settings - Fork 140
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
helm: has_plugin fails when helm is outputting multiline description #11
Comments
@kiwo Thanks for reporting this issue. What is the version of
I see there is extra
|
Hi @Akasurde helm version |
The Plugin which is making this multiline output
I dont know where the sources are from, I am guessing https://github.com/app-registry/appr-helm-plugin. Our build references no src here :( |
@kiwo ok. This is an issue with parsing logic and will need fixing. |
resolved_by_pr ansible-collections/community.kubernetes#400 |
@kiwo Could you please check if ansible-collections/community.kubernetes#400 works for you and let me know? Thanks. |
Hi @Akasurde I switched both packages to your branch (there seems to be some transition from community.kubernetes to kubernetes). thank you for this quick fix =) |
We parse ``helm plugin list`` output. Parsing logic fails if plugin provides multiline description. * added fix for parsing plugin multiline description * test added for this change Fixes: #399 Signed-off-by: Abhijeet Kasurde <[email protected]>
We parse ``helm plugin list`` output. Parsing logic fails if plugin provides multiline description. * added fix for parsing plugin multiline description * test added for this change Fixes: #399 Signed-off-by: Abhijeet Kasurde <[email protected]>
SUMMARY
We get an Exception in has_plugin in
community.kubernetes/blob/main/plugins/modules/helm.py 421
When testing for helm plugins this is our helm Output:
The failing output line is "usage:". This results in ValueError: not enough values to unpack (expected 2, got 1) because everything around it gets trimmed.
As a workaround i just ignored every line with single result:
ISSUE TYPE
COMPONENT NAME
community.kubernetes/blob/main/plugins/modules/helm.py 421
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: