mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
redhat_subscription: fix activationkeys argument
Prior to this commit, Ansible would pass '--activationkeys <value>' as a literal string, which the remote server would interpret as a single argument to subscription-manager. This led to the following failure message when using an activation key: subscription-manager: error: no such option: --activationkey "mykey" Update the arguments so that the remote server will properly interpret them as two separate values.
This commit is contained in:
parent
0283791d5f
commit
46372842e8
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ class Rhsm(RegistrationBase):
|
|||
|
||||
# Generate command arguments
|
||||
if activationkey:
|
||||
args.append('--activationkey "%s"' % activationkey)
|
||||
args.extend(['--activationkey', activationkey])
|
||||
else:
|
||||
if autosubscribe:
|
||||
args.append('--autosubscribe')
|
||||
|
|
Loading…
Reference in a new issue