Open marcandre-larochelle-bell opened 1 month ago
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
cc @Lunik @SamyCoenen @Shaps @lgatellier @marwatk @metanovii @nejch @scodeman @sh0shin @suukit @waheedi @zanssa click here for bot help
Summary
Check mode fails due to a code issue in the module regarding the check mode.
Line 519 expects the object called
gitlab_runner.runner_object
to be an object, however it receives a boolean due to an assignment in the functioncreate_or_update_runner
at line 325, when calling thecreate_runner
function there is check for "check_mode" performed and it returnstrue
at line 346 instead of a proper runner object, which then breaks at line 519.main
where the exception happenscreate_or_update_runner
function (from line 325 to the end of it)create_runner
function (see the return performed for the check_mode)Issue Type
Bug Report
Component Name
community.general.gitlab_runner module
Ansible Version
2.13.2
Community.general Version
9.4.0
Configuration
No response
OS / Environment
RHEL 9
Steps to Reproduce
Expected Results
Check mode doesn't fail
Actual Results
Stack trace:
Code of Conduct