-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix pagination issue in community.general.github_deploy_key #7375
Fix pagination issue in community.general.github_deploy_key #7375
Conversation
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 for your contribution!
Co-authored-by: Felix Fontein <felix@fontein.de>
If nobody objects, I'll merge this in a few days. |
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #7407 🤖 @patchback |
@padraic-padraic thanks for your contribution! |
* Fix pagination issue in community.general.github_deploy_key * Add changelog fragment * Update changelogs/fragments/7375-fix-github-deploy-key-pagination.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit eb4f8d4)
Backport to stable-7: 💚 backport PR created✅ Backport PR branch: Backported as #7408 🤖 @patchback |
* Fix pagination issue in community.general.github_deploy_key * Add changelog fragment * Update changelogs/fragments/7375-fix-github-deploy-key-pagination.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit eb4f8d4)
…ity.general.github_deploy_key (#7407) Fix pagination issue in community.general.github_deploy_key (#7375) * Fix pagination issue in community.general.github_deploy_key * Add changelog fragment * Update changelogs/fragments/7375-fix-github-deploy-key-pagination.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit eb4f8d4) Co-authored-by: Padraic Calpin <padraic.calpin93@gmail.com>
…ity.general.github_deploy_key (#7408) Fix pagination issue in community.general.github_deploy_key (#7375) * Fix pagination issue in community.general.github_deploy_key * Add changelog fragment * Update changelogs/fragments/7375-fix-github-deploy-key-pagination.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit eb4f8d4) Co-authored-by: Padraic Calpin <padraic.calpin93@gmail.com>
…collections#7375) * Fix pagination issue in community.general.github_deploy_key * Add changelog fragment * Update changelogs/fragments/7375-fix-github-deploy-key-pagination.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
SUMMARY
Fixes #5929.
I also encountered this error, though unrelated to the use of
force
. The bug is caused by the pagination code in the module. If Deploy Keys exist, but not enough to paginate, the pagination check would raise aKeyError
. Setting a default value for the lookup is sufficient to fix the module.ISSUE TYPE
COMPONENT NAME
github_deploy_key
ADDITIONAL INFORMATION
See issue #5929 for a discussion of how to trigger the bug.
Before:
After: