diff --git a/lib/ansible/modules/packaging/os/redhat_subscription.py b/lib/ansible/modules/packaging/os/redhat_subscription.py index b5205edc8b..9e0d2f6a2b 100644 --- a/lib/ansible/modules/packaging/os/redhat_subscription.py +++ b/lib/ansible/modules/packaging/os/redhat_subscription.py @@ -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')