-
Notifications
You must be signed in to change notification settings - Fork 673
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
Incorrect recommendation: fqcn[canonical]: You should use canonical module name kubernetes.core.k8s_info
instead of kubernetes.core.k8s
.
#4172
Comments
Well, i'm gonna guess the answer might just be that I have to upgrade my version of kuberentes.core, but it does seem odd that the only thing that changed in my project was |
Same issue with cisco.ios (v8.0.0) and cisco.nxos (v8.0.0) collections. ansible-lint 24.5.0 using ansible-core: 2.16.6 |
Well i found the issue for my specific case, turns out that the |
@jiholland , it appears your cisco collection has the same "old hack" that the kubernetes collection was using. It appears to have been removed in January, so probably already part of a release. An upgrade of your collection will probably resolve this for you. That said, this hack appears to be a normal thing that multiple large collections used. Might be a good idea to account for this somehow in the linter (like im not sure whether this is a valid finding or not given that these 2 large collections use it). At minimum it would be nice if the documentation were updated to state that if you run into this you should check your collections |
Summary
Getting a false recommendation to convert
k8s
tok8s_info
Issue Type
OS / ENVIRONMENT
ansible-lint 24.5.0 using ansible-core:2.13.9 ansible-compat:24.5.1 ruamel-yaml:0.18.6 ruamel-yaml-clib:0.2.8
ansible installation method: one of source, pip, OS package
pip
ansible-lint installation method: one of source, pip, OS package
pip
STEPS TO REPRODUCE
Desired Behavior
Possible security bugs should be reported via email to
security@ansible.com
Actual Behavior
Please give some details of what is happening. Include a minimum complete
verifiable example with:
ansible-playbook --syntax-check playbook
The text was updated successfully, but these errors were encountered: