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
Pino Toscano 867704dd75
rhsm_repository: refactor handling of subscription-manager (#6783)
Create a small helper class Rhsm, so all the logic related to the
interaction with subscription-manager is grouped there:
- create the Rhsm object in main(), once the initial checks are done
- search subscription-manager as required (so there is no need to
  manually check it), and store its path for reuse
- store the common arguments for running subscription-manager
- move run_subscription_manager() to Rhsm as run_repos()
- get rid of the different list parameters: we list only all the
  repositories, so the other cases are not needed (and can be added
  easily, if needed)
- move get_repository_list() to Rhsm as list_repositories()

The execution of subscription-manager is improved as well:
- pass the arguments to run_command() directly as list, rather than
  joining the arguments to string, which run_command() will need to
  split again
- move the "repos" parameter directly in run_repos()
- explicitly disable the shell, already off by default
- disable the expansions of variables, as there are none

Adapt the unit test to the different way run_command() is called.

There should be no behaviour changes.
2023-07-02 21:44:53 +02:00
..
.keep
6223-get-secret-ids-by-folderid.yml Fetch secret id's which are in folder by folder id (#6652) 2023-06-09 17:14:05 +02:00
6435-snap-channel-aware.yml snap: aware of channel in installed snaps (#6435) 2023-06-06 20:49:12 +02:00
6469-add-composites-support-for-keycloak-role.yml Inspq keycloak role composites (#6469) 2023-06-15 06:57:30 +02:00
6471-redfish-add-multipart-http-push-command.yml Redfish: Add MultipartHTTPPushUpdate (#6612) 2023-06-05 21:56:44 +02:00
6502-cobbler-inventory_hostname.yml
6510-proxmox-create-support_timezone.yaml proxmox: support param timezone when creating container (#6510) 2023-05-31 08:01:47 +02:00
6512-cpanm-default-mode.yml
6513-opkg-default-force.yml
6520-mas-disable-signin.yaml
6522-copr-respawn.yaml
6523-datadog-monitor-notification-preset-name-and-renotify.yaml
6525-sorcery-import.yaml sorcery: moved import to top (#6525) 2023-05-29 18:54:35 +02:00
6527-nmcli-bond-fix-xmit_hash_policy.yml
6531-opentelemetry-add-event-attributes.yml opentelemetry: add span event attributes (#6531) 2023-06-06 20:54:58 +02:00
6533-proxmox_kvm-tpmstate0-support.yaml proxmox_kvm: support for tpmstate0 parameter (#6533) 2023-05-29 18:56:57 +02:00
6534-zypper-exitcode-102-handled.yaml
6539-semantic-markup.yml
6548-portage-changed_use-newuse.yml
6554-proxmox-tasks-info-fix-required-password.yaml
6568-fix-get-user-by-username-in-keycloak-module-utils.yml
6570-handle-shutdown-timeout.yaml proxmox_kvm | Expose timeout param to stopped state (#6570) 2023-05-29 18:56:33 +02:00
6576-proxmox-snap-allow-to-remove-old-snapshots.yml proxmox_snap: allow set retention for snapshots (#6577) 2023-06-09 12:56:22 +02:00
6601-cmdrunner-deprecate-default-type.yml CmdRunner module utils: deprecate format method as_default_type() (#6601) 2023-05-31 07:58:28 +02:00
6602-vardict-as-dict.yml VarDict module utils: add as_dict() method (#6602) 2023-05-31 07:58:54 +02:00
6640-proxmox-composite-variables-support.yml Proxmox inventory plugin: support composite variables (#6641) 2023-06-12 21:44:26 +02:00
6644-dependencymixin-fix.yml MH mh/mixins/deps.py: prevent deprecation warning when no deps are specified (#6644) 2023-06-09 12:56:10 +02:00
6646-redhat_subscription-deprecate-autosubscribe.yml redhat_subscription: officially deprecate "autosubscribe" (#6646) 2023-06-09 13:20:40 +02:00
6647-vardict-methods.yml VarDict: convenience methods (#6647) 2023-06-11 08:34:06 +00:00
6648_ldap_search_page_size.yml plugins/modules/ldap_search: Add support for multipage searches (#6648) 2023-06-15 07:19:55 +02:00
6649-varsmixin-deprecation.yml MH VarsMixin deprecation (#6649) 2023-06-09 13:27:22 +02:00
6650-redhat_subscription-deprecate-pool.yml redhat_subscription: deprecate "pool" (#6650) 2023-06-09 13:27:38 +02:00
6658-redhat_subscription-internal-rhsm-refactor.yml redhat_subscription: refactor of internal Rhsm class (#6658) 2023-06-10 15:03:34 +02:00
6660-onepassword-lookup-service-account.yaml Onepassword lookup add service accounts (#6660) 2023-06-15 19:18:12 +02:00
6662-csv-bom.yml csv module utils: detect unicode BOM in content (#6662) 2023-06-15 07:19:16 +02:00
6663-deprecate-module_utils-redhat.yml Deprecate module_utils.redhat (#6663) 2023-06-10 13:26:14 +02:00
6668-ldap-client-cert.yml ldap: Add client certificate support (#6668) 2023-06-15 07:19:29 +02:00
6669-rhsm_release-internal-sub-man-exec.yml rhsm_release: improve the execution of subscription-manager (#6669) 2023-06-11 08:34:25 +00:00
6673-rhsm_repository-deprecate-present-absent.yml rhsm_repository: deprecate "state=present" and "state=absent" (#6673) 2023-06-11 10:38:09 +02:00
6676-rhsm_repository-fix-returned-repositories-with-purge.yml rhsm_repository: update returned "repositories" when using "purge=true" (#6676) 2023-06-20 07:13:47 +02:00
6680-filesystem-uuid-change.yml filesystem: add UUID change feature (#6680) 2023-06-19 08:59:34 +02:00
6682-lvg-clonesupport.yml lvg: add UUID reset and active state management feature (#6682) 2023-06-19 08:59:02 +02:00
6687-support-subgroups-for-keycloak-client-rolemapping.yml keycloak_client_rolemapping.py: add support for subgroups (#6687) 2023-06-18 19:49:00 +02:00
6688-is-struct-included-bug-in-keycloak-py.yml Fix composites comparison for role in is_struct_included keycloak.py … (#6688) 2023-06-14 22:34:45 +02:00
6709-proxmox-create-vm-with-existing-name.yml proxmox_kvm - Allow creation of VM with existing name but new vmid (#6709) 2023-06-19 07:01:58 +02:00
6711-cobbler-ip-address.yml plugins/inventory/cobbler: Collect IP addresses for hosts and add opt… (#6711) 2023-06-19 06:53:46 +02:00
6712-gitlab_group-filtered-for-none-values.yml gitlab_group => Make most options optional (#6712) 2023-06-18 21:02:21 +02:00
6719-redfish-utils-fix-for-get-volume-inventory.yml Fixing bug in get_volume_inventory (#6719) 2023-06-26 23:29:18 +02:00
6720-tss-fix-fetch-attachments.yml Fix multiple issues with the TSS lookup plugin when using fetch_attachments (#6720) 2023-06-20 18:23:16 +02:00
6748-icinga2_host-datafix.yml icinga2_host: fix a key error when modifying an existing host (#6748) 2023-06-20 18:25:32 +02:00
6763-keycloak-auth-provider-choices.yml Keycloak authentication provider ID choices (#6763) 2023-06-27 21:26:03 +02:00
6770-proxmox_disk_create_cdrom.yml proxmox_disk: fix failure to create cdrom (#6770) 2023-06-26 23:30:33 +02:00
6771-redfish-filter-empty-account-slots.yml Redfish: Filter empty account slots from ListUsers (#6772) 2023-06-26 23:29:51 +02:00
6773-proxmox_kvm-restarted-state-bug-fix.yaml Module proxmox_kvm restarted state bug fix (#6773) 2023-06-26 23:31:18 +02:00
6774-locale-gen-fix.yml locale_gen: works with C.UTF-8 (#6774) 2023-06-30 06:39:11 +02:00
6783-rhsm_repository-internal-refactor.yml rhsm_repository: refactor handling of subscription-manager (#6783) 2023-07-02 21:44:53 +02:00
6826-snap-out-strip.yml snap: fix bug when processing output (#6826) 2023-07-02 21:27:50 +02:00
ini_file-preserve-symlink.yml ini_file: Don't creates new file instead of following symlink (#6546) 2023-05-29 18:56:06 +02:00
ini_file-use-inactive-options-when-possible.yml ini_file: try using inactive option before creating a new one (#6575) 2023-06-19 06:53:33 +02:00