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/plugins/module_utils
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
..
identity/keycloak [PR #7663/f7bc6964 backport][stable-8] Add keycloak_realm_rolemapping module to map realm roles to groups (#7785) 2023-12-28 17:28:03 +00:00
mh Bump version of main to 8.0.0; remove deprecations, deprecate some leftovers (#7358) 2023-10-09 13:31:27 +02:00
net_tools/pritunl Fix more typos (#7439) 2023-10-29 18:04:44 +01:00
oracle [PR #7501/48e860be backport][stable-8] Use isinstance() instead of type() (#7503) 2023-11-08 13:27:04 +01:00
remote_management/lxca Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
source_control Remove deprecated features, bump version to 6.0.0 (#5326) 2022-10-25 08:07:21 +02:00
storage Fix copyright lines (make sure 'Copyright' is there). (#5083) 2022-08-05 22:12:10 +02:00
_filelock.py passwordstore plugin: vendor FileLock that was removed from ansible-core devel (#6447) 2023-04-28 12:08:45 +02:00
_mount.py Add remaining copyright statements, add licenses sanity test (#5098) 2022-08-08 23:23:08 +02:00
_stormssh.py Removes dependency on StormSSH (#6117) 2023-03-12 12:39:42 +01:00
alicloud_ecs.py multiple modules: removed unused imports (#5240) 2022-09-09 22:23:48 +02:00
btrfs.py New modules btrfs_subvolume / btrfs_info (#5832) 2023-04-20 06:35:29 +02:00
cloud.py Fix copyright lines (make sure 'Copyright' is there). (#5083) 2022-08-05 22:12:10 +02:00
cmd_runner.py CmdRunner bugfix (#7200) 2023-09-10 07:41:04 +02:00
consul.py [PR #7878/29f98654 backport][stable-8] Add new consul modules and reuse code between them. (#7902) 2024-01-27 10:33:33 +01:00
csv.py csv module utils: detect unicode BOM in content (#6662) 2023-06-15 07:19:16 +02:00
database.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
deps.py deps module util: fix overzealous name cropping (#6479) 2023-05-04 19:50:39 +12:00
dimensiondata.py Fix more typos (#7439) 2023-10-29 18:04:44 +01:00
gandi_livedns_api.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
gconftool2.py gconftool2: refactored to use ModuleHelper + CmdRunner (#5545) 2022-11-15 21:02:45 +01:00
gio_mime.py New Module: gio_mime (#7271) 2023-09-20 19:29:05 +02:00
gitlab.py [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
heroku.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
hwc_utils.py Fix more typos (#7439) 2023-10-29 18:04:44 +01:00
ibm_sa_utils.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
ilo_redfish_utils.py Adding CheckiLORebootStatus functionality to ilo_redfish_command (#6115) 2023-04-16 13:06:12 +02:00
influxdb.py Remove unneccessary imports (#5940) 2023-02-12 19:48:39 +01:00
ipa.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
jenkins.py jenkins_plugin: fix sanity checks (#5565) 2022-11-17 06:55:46 +01:00
known_hosts.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
ldap.py [PR #7697/a5cd4ebe backport][stable-8] Simplify regex for identifying order number in DN (#7646) (#7915) 2024-01-29 19:30:08 +01:00
linode.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
locale_gen.py locale_gen: refactor module to use CmdRunner (#6820) 2023-07-06 21:05:34 +02:00
lxd.py plugins/inventory/lxd: add server_cert option (#7392) 2023-10-25 08:47:48 +02:00
manageiq.py manageiq_tags_info: new module (#5368) 2022-10-23 11:33:07 +02:00
memset.py Fix more typos (#7439) 2023-10-29 18:04:44 +01:00
module_helper.py Bump version of main to 8.0.0; remove deprecations, deprecate some leftovers (#7358) 2023-10-09 13:31:27 +02:00
ocapi_utils.py [PR #7501/48e860be backport][stable-8] Use isinstance() instead of type() (#7503) 2023-11-08 13:27:04 +01:00
oneandone.py Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00
onepassword.py Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00
oneview.py Remove unneccessary imports (#5940) 2023-02-12 19:48:39 +01:00
online.py Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00
opennebula.py one_vm: fix syntax error when creating VMs with a more complex template (#6294) 2023-04-16 13:22:49 +02:00
pipx.py [PR #7506/c2e578cb backport][stable-8] pipx: change parameter formatter for pip_args (#7514) 2023-11-11 12:36:48 +01:00
proxmox.py [stable-8] Proxmox add storage content listing (#7725) (#7803) 2023-12-31 15:43:43 +01:00
puppet.py puppet: fix noop parameter error (#6458) 2023-05-03 22:45:01 +02:00
pure.py Remove unneccessary imports (#5940) 2023-02-12 19:48:39 +01:00
rax.py rax_scaling_group: fix sanity check (#5563) 2022-11-16 21:58:55 +01:00
redfish_utils.py [PR #7952/dd7c3ad1 backport][stable-8] Fix errors in hpe specific get methods (#8022) 2024-02-24 20:26:52 +00:00
redhat.py Deprecate module_utils.redhat (#6663) 2023-06-10 13:26:14 +02:00
redis.py Fix linting errors; fix some real bugs (#5111) 2022-08-12 11:07:30 +02:00
rundeck.py Rundeck - fix TypeError on 404 api response (#6983) 2023-07-31 08:37:32 +02:00
saslprep.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
scaleway.py Fix more typos (#7439) 2023-10-29 18:04:44 +01:00
snap.py snap: add param "dangerous" (#6908) 2023-07-15 12:54:39 +02:00
ssh.py ssh_config: fixed sanity (#5720) 2022-12-22 21:34:21 +01:00
univention_umc.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
utm_utils.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
vardict.py Fix more typos (#7439) 2023-10-29 18:04:44 +01:00
version.py Drop support for ansible-core 2.11 and 2.12 (#7269) 2023-10-11 16:13:14 +02:00
vexata.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
wdc_redfish_utils.py Fix more typos (#7439) 2023-10-29 18:04:44 +01:00
xenserver.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
xfconf.py Fix copyright lines (make sure 'Copyright' is there). (#5083) 2022-08-05 22:12:10 +02:00