Skip to content

Commit

Permalink
fix(modules/gitlab_runners): pass paused to gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-wtioit committed Jul 16, 2024
1 parent 3a24aa5 commit 8f20094
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/8648-fix-gitlab-runner-paused.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- "gitlab_runner - fix ``paused`` parameter being ignored (https://github.com/ansible-collections/community.general/pull/8648)"
2 changes: 2 additions & 0 deletions plugins/modules/gitlab_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ def main():
state = module.params['state']
runner_description = module.params['description']
runner_active = module.params['active']
runner_paused = module.params['paused']
tag_list = module.params['tag_list']
run_untagged = module.params['run_untagged']
runner_locked = module.params['locked']
Expand Down Expand Up @@ -502,6 +503,7 @@ def main():
if state == 'present':
if gitlab_runner.create_or_update_runner(runner_description, {
"active": runner_active,
"paused": runner_paused,
"tag_list": tag_list,
"run_untagged": run_untagged,
"locked": runner_locked,
Expand Down

0 comments on commit 8f20094

Please sign in to comment.