mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 04:34:24 -07:00
The 'unsubscribe' command of 'subscription-manager' was deprecated
already in subscription-manager 1.11.3, shipped with RHEL 5.11.
As it was removed in subscription-manager 1.29.x, unsubscribing from
pools was thus broken.
The simple fix is to call the proper command, 'remove'.
(cherry picked from commit a45b90e93f
)
Co-authored-by: Pino Toscano <ptoscano@redhat.com>
This commit is contained in:
parent
b3c99aea72
commit
141f32c78b
3 changed files with 6 additions and 3 deletions
|
@ -468,7 +468,7 @@ class Rhsm(RegistrationBase):
|
|||
items = ["--all"]
|
||||
|
||||
if items:
|
||||
args = [SUBMAN_CMD, 'unsubscribe'] + items
|
||||
args = [SUBMAN_CMD, 'remove'] + items
|
||||
rc, stderr, stdout = self.module.run_command(args, check_rc=True)
|
||||
return serials
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue