-
Couldn't load subscription status.
- Fork 1.7k
fix(modules/gitlab_runner): Fix exception in check mode on new runners #10918
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(modules/gitlab_runner): Fix exception in check mode on new runners #10918
Conversation
When a new runner is added in check mode, the role used to throw an exception. Fix this by returning a valid runner object instead of a boolean. Fixes ansible-collections#8854
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.
Looks reasonable to me. If nobody objects, I'll merge this in a week.
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.
LGTM
Backport to stable-10: 💚 backport PR created✅ Backport PR branch: Backported as #10943 🤖 @patchback |
#10918) * fix(modules/gitlab_runner): Fix exception in check mode on new runners When a new runner is added in check mode, the role used to throw an exception. Fix this by returning a valid runner object instead of a boolean. Fixes #8854 * docs: Add changelog fragment (cherry picked from commit 7e666a9)
Backport to stable-11: 💚 backport PR created✅ Backport PR branch: Backported as #10944 🤖 @patchback |
|
@carlfriedrich thanks for fixing this! |
#10918) * fix(modules/gitlab_runner): Fix exception in check mode on new runners When a new runner is added in check mode, the role used to throw an exception. Fix this by returning a valid runner object instead of a boolean. Fixes #8854 * docs: Add changelog fragment (cherry picked from commit 7e666a9)
…Fix exception in check mode on new runners (#10943) fix(modules/gitlab_runner): Fix exception in check mode on new runners (#10918) * fix(modules/gitlab_runner): Fix exception in check mode on new runners When a new runner is added in check mode, the role used to throw an exception. Fix this by returning a valid runner object instead of a boolean. Fixes #8854 * docs: Add changelog fragment (cherry picked from commit 7e666a9) Co-authored-by: carlfriedrich <[email protected]>
…Fix exception in check mode on new runners (#10944) fix(modules/gitlab_runner): Fix exception in check mode on new runners (#10918) * fix(modules/gitlab_runner): Fix exception in check mode on new runners When a new runner is added in check mode, the role used to throw an exception. Fix this by returning a valid runner object instead of a boolean. Fixes #8854 * docs: Add changelog fragment (cherry picked from commit 7e666a9) Co-authored-by: carlfriedrich <[email protected]>
SUMMARY
When a new runner is added in check mode, the role used to throw an exception. Fix this by returning a valid runner object instead of a boolean.
Fixes #8854
ISSUE TYPE
COMPONENT NAME
gitlab_runner
ADDITIONAL INFORMATION
For full error description see #8854.