-
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
Feature filter keep_keys #8456
Feature filter keep_keys #8456
Conversation
@vbotka this PR contains the following merge commits: Please rebase your branch to remove these commits. |
6714409
to
c97fc2d
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Co-authored-by: Felix Fontein <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
target is list. Update documentation, function comments, and error messages.
Co-authored-by: Felix Fontein <[email protected]>
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.
If nobody objects, I'll merge this tomorrow morning so work can continue on the related PRs.
Backport to stable-9: 💚 backport PR created✅ Backport PR branch: Backported as #8462 🤖 @patchback |
* Add filter keep_keys. Implement feature request #8438 * Fix comment indentation. * Fix regex reference. * Fix indentation. * Fix isinstance list. * Update plugins/plugin_utils/keys_filter.py Co-authored-by: Felix Fontein <[email protected]> * Update plugins/plugin_utils/keys_filter.py Co-authored-by: Felix Fontein <[email protected]> * Update plugins/plugin_utils/keys_filter.py Co-authored-by: Felix Fontein <[email protected]> * Update plugins/plugin_utils/keys_filter.py Co-authored-by: Felix Fontein <[email protected]> * Update plugins/filter/keep_keys.py Co-authored-by: Felix Fontein <[email protected]> * Update documentation, examples, and integration tests. * _keys_filter_target_str returns tuple of unique target strings if target is list. Update documentation, function comments, and error messages. * Sort maintainers. * Update plugins/filter/keep_keys.py Co-authored-by: Felix Fontein <[email protected]> * Update examples with explicit collection. --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 6f8f12f)
Thanks for contributing this @vbotka! |
Feature filter keep_keys (#8456) * Add filter keep_keys. Implement feature request #8438 * Fix comment indentation. * Fix regex reference. * Fix indentation. * Fix isinstance list. * Update plugins/plugin_utils/keys_filter.py Co-authored-by: Felix Fontein <[email protected]> * Update plugins/plugin_utils/keys_filter.py Co-authored-by: Felix Fontein <[email protected]> * Update plugins/plugin_utils/keys_filter.py Co-authored-by: Felix Fontein <[email protected]> * Update plugins/plugin_utils/keys_filter.py Co-authored-by: Felix Fontein <[email protected]> * Update plugins/filter/keep_keys.py Co-authored-by: Felix Fontein <[email protected]> * Update documentation, examples, and integration tests. * _keys_filter_target_str returns tuple of unique target strings if target is list. Update documentation, function comments, and error messages. * Sort maintainers. * Update plugins/filter/keep_keys.py Co-authored-by: Felix Fontein <[email protected]> * Update examples with explicit collection. --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 6f8f12f) Co-authored-by: Vladimir Botka <[email protected]>
Thank you @felixfontein! |
* Add filter remove_keys. * Add filter remove_keys integration test, fragment, and maintainer. * Update with plugins/plugin_utils/keys_filter.py * Update according PR #8456 * Update maintainers. * Fix typo in return doc. * Remove local keys_filter.py. Then rebase. * Add local keys_filter.py * Update plugins/filter/remove_keys.py Co-authored-by: Felix Fontein <[email protected]> * Update plugins/filter/remove_keys.py Co-authored-by: Felix Fontein <[email protected]> --------- Co-authored-by: Felix Fontein <[email protected]>
* Add filter remove_keys. * Add filter remove_keys integration test, fragment, and maintainer. * Update with plugins/plugin_utils/keys_filter.py * Update according PR #8456 * Update maintainers. * Fix typo in return doc. * Remove local keys_filter.py. Then rebase. * Add local keys_filter.py * Update plugins/filter/remove_keys.py Co-authored-by: Felix Fontein <[email protected]> * Update plugins/filter/remove_keys.py Co-authored-by: Felix Fontein <[email protected]> --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 06f13e7)
) Feature filter remove_keys (#8443) * Add filter remove_keys. * Add filter remove_keys integration test, fragment, and maintainer. * Update with plugins/plugin_utils/keys_filter.py * Update according PR #8456 * Update maintainers. * Fix typo in return doc. * Remove local keys_filter.py. Then rebase. * Add local keys_filter.py * Update plugins/filter/remove_keys.py Co-authored-by: Felix Fontein <[email protected]> * Update plugins/filter/remove_keys.py Co-authored-by: Felix Fontein <[email protected]> --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 06f13e7) Co-authored-by: Vladimir Botka <[email protected]>
SUMMARY
ansible.utils.keep_keys does not work properly. Fixing is not efficient.
ISSUE TYPE
New Module/Plugin Pull Request
COMPONENT NAME
community.general.keep_keys
ADDITIONAL INFORMATION
This PR implements #8438