-
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
community.general.gitlab_runner KeyError: 'access_level' bug #6112
Labels
Comments
Files identified in the description: If these files are incorrect, please update the |
ansibullbot
added
bug
This issue/PR relates to a bug
gitlab
module
module
plugins
plugin (any type)
source_control
labels
Feb 28, 2023
cfiehe
pushed a commit
to cfiehe/community.general
that referenced
this issue
Mar 2, 2023
…ror: 'access_level' The fix ensures that no 'KeyError' is raised, when 'access_level' is not provided as module parameter or when 'access_level_on_creation' is false. Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de>
I have fixed the problem and provided a pull request: #6130 @papdaniel @felixfontein @nejch |
cfiehe
pushed a commit
to cfiehe/community.general
that referenced
this issue
Mar 2, 2023
…ror: 'access_level' The fix ensures that no 'KeyError' is raised, when 'access_level' is not provided as module parameter or when 'access_level_on_creation' is false. Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de>
felixfontein
pushed a commit
that referenced
this issue
Mar 4, 2023
….gitlab_runner KeyError: 'access_level' (#6142) Fixes #6112: community.general.gitlab_runner KeyError: 'access_level' (#6130) The fix ensures that no 'KeyError' is raised, when 'access_level' is not provided as module parameter or when 'access_level_on_creation' is false. Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de> Co-authored-by: Christoph Fiehe <c.fiehe@eurodata.de> (cherry picked from commit c077818) Co-authored-by: cfiehe <cfiehe@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Summary
Line 237 always gives KeyError:
community.general/plugins/modules/gitlab_runner.py
Lines 227 to 239 in d209466
arguments is just defined right there and it doesn't have 'access_level' key. The if always fails in the line 237.
Issue Type
Bug Report
Component Name
gitlab_runner
Ansible Version
Community.general Version
Configuration
$ ansible-config dump --only-changed
OS / Environment
No response
Steps to Reproduce
Expected Results
Playbook runs successfully
Actual Results
tmp/ansible_community.general.gitlab_runner_payload_64flh7vp/ansible_community.general.gitlab_runner_payload.zip/ansible_collections/community/general/plugins/modules/gitlab_runner.py\", line 237, in create_or_update_runner\r\nKeyError: 'access_level'\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1
Code of Conduct
The text was updated successfully, but these errors were encountered: