mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
[PR #7624/af01b462 backport][stable-7] redhat_subscription: use D-Bus registration on RHEL 7 only on 7.4+ (#7642)
redhat_subscription: use D-Bus registration on RHEL 7 only on 7.4+ (#7624)
subscription-manager does not provide a D-Bus interface in versions of
RHEL 7 older than 7.4.
(cherry picked from commit af01b462d5
)
Co-authored-by: Pino Toscano <ptoscano@redhat.com>
This commit is contained in:
parent
b0910d6a47
commit
3593d9c17c
3 changed files with 35 additions and 2 deletions
|
@ -29,6 +29,8 @@ def patch_redhat_subscription(mocker):
|
|||
return_value='/testbin/subscription-manager')
|
||||
mocker.patch('ansible_collections.community.general.plugins.modules.redhat_subscription.Rhsm._can_connect_to_dbus',
|
||||
return_value=False)
|
||||
mocker.patch('ansible_collections.community.general.plugins.modules.redhat_subscription.Rhsm._has_dbus_interface',
|
||||
return_value=False)
|
||||
mocker.patch('ansible_collections.community.general.plugins.modules.redhat_subscription.getuid',
|
||||
return_value=0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue