mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
867704dd75
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. |
||
---|---|---|
.. | ||
.keep | ||
6223-get-secret-ids-by-folderid.yml | ||
6435-snap-channel-aware.yml | ||
6469-add-composites-support-for-keycloak-role.yml | ||
6471-redfish-add-multipart-http-push-command.yml | ||
6502-cobbler-inventory_hostname.yml | ||
6510-proxmox-create-support_timezone.yaml | ||
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 | ||
6527-nmcli-bond-fix-xmit_hash_policy.yml | ||
6531-opentelemetry-add-event-attributes.yml | ||
6533-proxmox_kvm-tpmstate0-support.yaml | ||
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 | ||
6576-proxmox-snap-allow-to-remove-old-snapshots.yml | ||
6601-cmdrunner-deprecate-default-type.yml | ||
6602-vardict-as-dict.yml | ||
6640-proxmox-composite-variables-support.yml | ||
6644-dependencymixin-fix.yml | ||
6646-redhat_subscription-deprecate-autosubscribe.yml | ||
6647-vardict-methods.yml | ||
6648_ldap_search_page_size.yml | ||
6649-varsmixin-deprecation.yml | ||
6650-redhat_subscription-deprecate-pool.yml | ||
6658-redhat_subscription-internal-rhsm-refactor.yml | ||
6660-onepassword-lookup-service-account.yaml | ||
6662-csv-bom.yml | ||
6663-deprecate-module_utils-redhat.yml | ||
6668-ldap-client-cert.yml | ||
6669-rhsm_release-internal-sub-man-exec.yml | ||
6673-rhsm_repository-deprecate-present-absent.yml | ||
6676-rhsm_repository-fix-returned-repositories-with-purge.yml | ||
6680-filesystem-uuid-change.yml | ||
6682-lvg-clonesupport.yml | ||
6687-support-subgroups-for-keycloak-client-rolemapping.yml | ||
6688-is-struct-included-bug-in-keycloak-py.yml | ||
6709-proxmox-create-vm-with-existing-name.yml | ||
6711-cobbler-ip-address.yml | ||
6712-gitlab_group-filtered-for-none-values.yml | ||
6719-redfish-utils-fix-for-get-volume-inventory.yml | ||
6720-tss-fix-fetch-attachments.yml | ||
6748-icinga2_host-datafix.yml | ||
6763-keycloak-auth-provider-choices.yml | ||
6770-proxmox_disk_create_cdrom.yml | ||
6771-redfish-filter-empty-account-slots.yml | ||
6773-proxmox_kvm-restarted-state-bug-fix.yaml | ||
6774-locale-gen-fix.yml | ||
6783-rhsm_repository-internal-refactor.yml | ||
6826-snap-out-strip.yml | ||
ini_file-preserve-symlink.yml | ||
ini_file-use-inactive-options-when-possible.yml |