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
..
2023-03-09 20:09:13 +01:00
2023-04-29 21:46:12 +02:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2023-03-25 08:23:20 +01:00
2023-02-12 21:05:08 +01:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-07 20:15:00 +01:00
2022-11-02 20:42:29 +00:00
2023-03-04 20:51:50 +01:00
2023-02-12 21:05:08 +01:00
2023-04-28 10:05:24 +02:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2023-05-03 22:45:35 +02:00
2022-11-02 20:42:29 +00:00
2023-02-12 21:05:08 +01:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2023-02-12 21:05:08 +01:00
2023-03-25 08:23:20 +01:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2023-05-09 19:48:29 +02:00
2022-11-02 20:42:29 +00:00
2022-11-10 21:18:01 +01:00
2022-11-02 20:42:29 +00:00
2023-06-20 19:18:26 +02:00
2023-02-12 21:05:08 +01:00
2023-06-18 19:49:00 +02:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-06-15 06:57:30 +02:00
2023-02-12 21:05:08 +01:00
2023-06-09 06:17:44 +02:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-06-19 13:11:03 +02:00
2022-11-02 20:42:29 +00:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2022-11-02 20:42:29 +00:00
2023-02-26 14:58:58 +01:00
2022-11-02 20:42:29 +00:00
2023-05-21 17:03:38 +02:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-01-22 17:10:36 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-03-02 07:01:15 +01:00
2022-11-02 20:42:29 +00:00
2023-02-12 21:05:08 +01:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2023-06-19 07:01:58 +02:00
2022-11-02 20:42:29 +00:00
2023-02-12 21:05:08 +01:00
2023-05-03 22:45:01 +02:00
2023-06-10 15:03:34 +02:00
2023-02-12 21:05:08 +01:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-06-11 08:34:25 +00:00
2023-07-02 21:44:53 +02:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2023-02-03 11:02:14 +01:00
2023-07-02 21:27:50 +02:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2023-02-12 21:05:08 +01:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-08-08 14:24:58 +02:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00