Skip to content

Conversation

@carlfriedrich
Copy link
Contributor

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
  • Bugfix Pull Request
COMPONENT NAME

gitlab_runner

ADDITIONAL INFORMATION

For full error description see #8854.

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
@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module new_contributor Help guide this first time contributor plugins plugin (any type) small_patch Hopefully easy to review labels Oct 13, 2025
@ansibullbot ansibullbot removed the small_patch Hopefully easy to review label Oct 13, 2025
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-10 Automatically create a backport for the stable-10 branch backport-11 Automatically create a backport for the stable-10 branch labels Oct 13, 2025
Copy link
Collaborator

@felixfontein felixfontein left a 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.

Copy link
Collaborator

@russoz russoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@felixfontein felixfontein merged commit 7e666a9 into ansible-collections:main Oct 19, 2025
115 checks passed
@patchback
Copy link

patchback bot commented Oct 19, 2025

Backport to stable-10: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-10/7e666a9c319f3925dcdaa621c52de1155737e1a1/pr-10918

Backported as #10943

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Oct 19, 2025
patchback bot pushed a commit that referenced this pull request Oct 19, 2025
#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)
@patchback
Copy link

patchback bot commented Oct 19, 2025

Backport to stable-11: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-11/7e666a9c319f3925dcdaa621c52de1155737e1a1/pr-10918

Backported as #10944

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@felixfontein
Copy link
Collaborator

@carlfriedrich thanks for fixing this!
@russoz thanks for reviewing!

patchback bot pushed a commit that referenced this pull request Oct 19, 2025
#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)
felixfontein pushed a commit that referenced this pull request Oct 19, 2025
…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]>
felixfontein pushed a commit that referenced this pull request Oct 19, 2025
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-10 Automatically create a backport for the stable-10 branch backport-11 Automatically create a backport for the stable-10 branch bug This issue/PR relates to a bug has_issue module module new_contributor Help guide this first time contributor plugins plugin (any type)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gitlab_runner: check mode is throwing an Exception

4 participants