1
0
Fork 0
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:
Ken Dreyer 2015-04-02 14:16:43 -06:00 committed by Matt Clay
parent 0283791d5f
commit 46372842e8

View file

@ -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')