1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/changelogs/fragments
patchback[bot] 828968b0dd
[PR #7790/787fa462 backport][stable-8] fix(modules/gitlab_runner): Use correct argument to list all runners (#8032)
fix(modules/gitlab_runner): Use correct argument to list all runners (#7790)

* fix(modules/gitlab_runner): Use correct argument to list all runners

python-gitlab 4.0.0 removed support for the `as_list=False` parameter.
This functionality is now available as `iterator=True`.

Without this change, the module actually only retrieves the first
20 results, which can lead to non-idempotent behavior, such as
registering a runner again.

* Add changelog entry (#7790)

* gitlab_runner: Check python-gitlab version when listing runners

* gitlab: Add list_all_kwargs variable to module_utils

* refactor(gitlab modules): use list_all_kwargs where it helps (#7790)

I did not change every instance of all=True or all=False, only those
which could obviously benefit from simplifying:

  * Code using `all=True` but then searching for any items that match a
    condition (no need to collect the full list).
  * Code that basically reimplements `all=True` with manual pagination.
    (These could be changed to `all=True`, but `list_all_kwargs` also
    sets per_page to 100, to gather data faster.)

* gitlab_instance_variable: Use list_all_kwargs

* Add new changelog entry for gitlab module changes (#7790)

(cherry picked from commit 787fa46217)

Co-authored-by: Mike Wadsten <mikewadsten@gmail.com>
2024-02-25 21:26:37 +01:00
..
.keep Rename changelogs/fragments/.empty -> changelogs/fragments/.keep 2020-08-07 08:17:57 +02:00
8.4.0.yml Prepare 8.4.0 release. 2024-02-23 21:15:42 +01:00
7717-prevent-modprobe-error.yml [PR #8005/e0dbe9c9 backport][stable-8] modprobe: Avoid FileNotFoundError when directories don't exist. (#8028) 2024-02-25 07:47:27 +01:00
7790-gitlab-runner-api-pagination.yml [PR #7790/787fa462 backport][stable-8] fix(modules/gitlab_runner): Use correct argument to list all runners (#8032) 2024-02-25 21:26:37 +01:00
7843-proxmox_kvm-update_unsafe.yml [stable-8] proxmox_kvm - new param to support unsafe updates (#7843) (#7954) 2024-02-07 14:50:18 +01:00
7847-gitlab-issue-title.yml [PR #7847/8ea58618 backport][stable-8] gitlab_issue: use search instead of title (#7977) 2024-02-17 22:48:48 +01:00
7881-fix-keycloak-client-ckeckmode.yml [PR #7881/001292c7 backport][stable-8] Fixes #1226 - keycloak_client detects changes on check_mode but not in run mode (#7979) 2024-02-17 22:48:40 +01:00
7916-add-redfish-set-service-identification.yml [stable-8] Add redfish_config command to set service identification (#7917) (#7957) 2024-02-11 13:35:33 +01:00
7919-onepassword-fieldname-casing.yaml [PR #7919/6088e2dc backport][stable-8] fixes #7918 - onepassword lookup fails if field name contains uppercase letters and section is specified (#7975) 2024-02-17 12:29:48 +01:00
7951-fix-redfish_info-exception.yml [PR #7952/dd7c3ad1 backport][stable-8] Fix errors in hpe specific get methods (#8022) 2024-02-24 20:26:52 +00:00
7956-adding-releases_events-option-to-gitlab_hook-module.yaml [PR #7956/1dd697bd backport][stable-8] Adding releases events option to gitlab_hook module (#7982) 2024-02-19 20:08:57 +01:00
7963-fix-terraform-diff-absent.yml [PR #7963/0a35eb2d backport][stable-8] terraform: fix diff when state is absent (#7973) 2024-02-17 12:29:37 +01:00
7970-fix-cargo-path-idempotency.yaml [PR #7970/9510988a backport][stable-8] cargo: use the correct path when checking installation status fixing idempotency issue. (#8019) 2024-02-23 20:59:42 +01:00
7976-add-mssql_script-transactional-support.yml [PR #7976/beacd54b backport][stable-8] Added transactional(rollback/commit) support to mssql_script module (#8017) 2024-02-23 20:48:59 +01:00
7983-sudoers-add-support-noexec.yml [PR #7983/49bd9cbd backport][stable-8] Add noexec support to sudoers (#8012) 2024-02-23 07:08:04 +00:00
7994-bitwarden-session-arg.yaml [PR #7994/6cafd3be backport][stable-8] feat(lookup/bitwarden): add support for "session" arg (#8030) 2024-02-25 21:26:23 +01:00
7996-Add templating support to Icinga2 Inventory.yml [PR #7996/638a7fc1 backport][stable-8] Add templating support to Icinga2 Inventory (#8026) 2024-02-25 07:47:37 +01:00
8003-redfish-get-update-status-empty-response.yml [PR #8004/2a8da769 backport][stable-8] Redfish: Enhanced GetUpdateStatus to allow for empty responses to accomodate possible usage of 204 No Content (#8011) 2024-02-23 07:07:57 +00:00
pkgin.yml [PR #7971/dd25ddfb backport][stable-8] Pkgin fixes (#8016) 2024-02-23 20:48:29 +01:00