-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
stop passing loader/dataloader since it has been deprecated by ansible #6074
stop passing loader/dataloader since it has been deprecated by ansible #6074
Conversation
Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>
Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>
Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>
I'm not entirely sure how to continue here. This PR will mute the warning, but the code will break hard once Ansible 2.18 is released, because the arguments will not match anymore. I can think of several possible solutions:
Can you advise how to continue? |
Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>
I think I found my answer in #4548 :) |
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.
Thanks a lot for your contribution! I've added some comments for the changelog fragments and comments, besides that it looks good to me.
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
Backport to stable-5: 💚 backport PR created✅ Backport PR branch: Backported as #6091 🤖 @patchback |
#6074) * stop passing loader/dataloader since it has been deprecated by ansible Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * add changelog fragment Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * explicitly pass None to keep compatibility to older Ansible versions Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * use try/except to keep things compatible Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * Update plugins/lookup/cartesian.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/lookup/flattened.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/lookup/flattened.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/lookup/cartesian.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update changelogs/fragments/6074-loader_in_listify.yml.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit b649291)
@schurzi thanks a lot for your contribution! |
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #6092 🤖 @patchback |
#6074) * stop passing loader/dataloader since it has been deprecated by ansible Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * add changelog fragment Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * explicitly pass None to keep compatibility to older Ansible versions Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * use try/except to keep things compatible Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * Update plugins/lookup/cartesian.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/lookup/flattened.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/lookup/flattened.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/lookup/cartesian.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update changelogs/fragments/6074-loader_in_listify.yml.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit b649291)
… since it has been deprecated by ansible (#6091) stop passing loader/dataloader since it has been deprecated by ansible (#6074) * stop passing loader/dataloader since it has been deprecated by ansible Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * add changelog fragment Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * explicitly pass None to keep compatibility to older Ansible versions Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * use try/except to keep things compatible Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * Update plugins/lookup/cartesian.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/lookup/flattened.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/lookup/flattened.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/lookup/cartesian.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update changelogs/fragments/6074-loader_in_listify.yml.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit b649291) Co-authored-by: schurzi <github@drachen-server.de>
… since it has been deprecated by ansible (#6092) stop passing loader/dataloader since it has been deprecated by ansible (#6074) * stop passing loader/dataloader since it has been deprecated by ansible Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * add changelog fragment Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * explicitly pass None to keep compatibility to older Ansible versions Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * use try/except to keep things compatible Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * Update plugins/lookup/cartesian.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/lookup/flattened.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/lookup/flattened.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/lookup/cartesian.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update changelogs/fragments/6074-loader_in_listify.yml.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit b649291) Co-authored-by: schurzi <github@drachen-server.de>
ansible-collections#6074) * stop passing loader/dataloader since it has been deprecated by ansible Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * add changelog fragment Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * explicitly pass None to keep compatibility to older Ansible versions Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * use try/except to keep things compatible Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * Update plugins/lookup/cartesian.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/lookup/flattened.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/lookup/flattened.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/lookup/cartesian.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update changelogs/fragments/6074-loader_in_listify.yml.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> Co-authored-by: Felix Fontein <felix@fontein.de>
SUMMARY
remove deprecated passing of loader to
listify_lookup_plugin_terms
ISSUE TYPE
COMPONENT NAME
ADDITIONAL INFORMATION
Passing the load was deprecated in Ansible (ansible/ansible#78244). This PR updates the code to remove the currently displayed deprecation warning.
Example playbook:
which produces the output: