Files
community.general/plugins/modules
Mike Wadsten 787fa46217 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)
2024-02-25 19:45:30 +01:00
..
2023-10-25 23:01:32 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-07-11 18:28:34 +12:00
2023-06-20 08:14:02 +02:00
2023-11-22 22:45:28 +01:00
2023-06-20 08:14:02 +02:00
2023-10-25 23:01:32 +02:00
2024-01-27 11:05:47 +01:00
2024-01-27 10:58:41 +01:00
2024-01-27 10:58:41 +01:00
2024-01-27 10:58:41 +01:00
2024-01-27 10:58:41 +01:00
2023-07-14 07:03:34 +02:00
2023-10-25 23:01:32 +02:00
2023-10-25 23:01:32 +02:00
2023-10-25 23:01:32 +02:00
2023-06-20 08:14:02 +02:00
2023-09-20 19:29:05 +02:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-06-20 08:14:02 +02:00
2023-11-22 22:45:28 +01:00
2023-06-20 08:14:02 +02:00
2023-10-29 18:04:44 +01:00
2023-11-22 22:45:28 +01:00
2023-07-12 19:37:10 +02:00
2023-10-25 23:01:32 +02:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-10-25 23:01:32 +02:00
2023-10-25 23:01:32 +02:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-10-25 23:01:32 +02:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-06-20 08:14:02 +02:00
2023-10-29 18:04:44 +01:00
2023-07-14 07:03:34 +02:00
2023-06-20 08:14:02 +02:00
2023-11-22 22:45:28 +01:00
2023-10-25 23:01:32 +02:00
2023-10-25 23:01:32 +02:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-10-25 23:01:32 +02:00
2023-07-15 12:54:53 +02:00
2023-11-22 22:45:28 +01:00
2023-10-29 18:04:44 +01:00
2023-10-25 23:01:32 +02:00
2023-10-04 19:48:54 +02:00
2023-09-06 19:11:43 +02:00
2023-06-20 08:14:02 +02:00
2023-11-22 22:45:28 +01:00
2023-06-20 08:14:02 +02:00
2023-12-03 13:51:39 +01:00
2023-08-12 09:57:49 +02:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-06-20 08:14:02 +02:00
2023-11-22 22:45:28 +01:00
2023-06-20 08:14:02 +02:00
2023-10-25 23:01:32 +02:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-07-07 07:15:17 +12:00
2023-11-22 22:45:28 +01:00
2023-10-25 23:01:32 +02:00
2023-10-25 23:01:32 +02:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-07-08 10:14:22 +02:00
2023-10-25 23:01:32 +02:00
2023-11-22 22:45:28 +01:00
2023-10-25 23:01:32 +02:00
2023-10-25 23:01:32 +02:00
2024-02-23 20:33:13 +01:00
2023-11-22 22:45:28 +01:00
2023-06-20 08:14:02 +02:00
2023-02-04 17:05:08 +01:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-10-25 22:05:37 +02:00
2023-11-22 22:45:28 +01:00
2023-06-20 08:14:02 +02:00
2023-11-22 22:45:28 +01:00
2023-06-20 08:14:02 +02:00
2023-10-25 23:01:32 +02:00
2023-06-20 08:14:02 +02:00
2023-10-25 23:01:32 +02:00
2023-06-20 08:14:02 +02:00
2023-10-25 23:01:32 +02:00
2023-10-25 23:01:32 +02:00
2023-11-22 22:45:28 +01:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-06-20 08:14:02 +02:00
2023-10-29 18:04:44 +01:00
2023-10-25 23:01:32 +02:00
2023-06-20 08:14:02 +02:00
2023-11-22 22:45:28 +01:00
2023-06-20 08:14:02 +02:00
2023-11-22 22:45:28 +01:00
2023-06-20 08:14:02 +02:00
2023-10-29 18:04:44 +01:00
2023-06-20 08:14:02 +02:00
2023-11-22 22:45:28 +01:00
2023-06-10 09:28:40 +02:00
2023-10-25 23:01:32 +02:00
2023-06-20 08:14:02 +02:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-11-22 22:45:28 +01:00
2023-06-20 08:14:02 +02:00
2023-10-25 23:01:32 +02:00
2023-10-25 23:01:32 +02:00
2023-06-20 08:14:02 +02:00
2023-06-20 08:14:02 +02:00
2023-11-22 22:45:28 +01:00
2023-10-25 22:05:37 +02:00