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
04c34cfa02
commit
bd617353cb
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