issue with activation_key and proxy on subscription-manager (#42624)

* Update redhat_subscription.py

I need to use a proxy server/user/password also if I user an activation_key

* remove spaces
pull/49960/head
Giuseppe Mancuso 6 years ago committed by ansibot
parent 4ca38afe4a
commit d29f647f09

@ -348,6 +348,15 @@ class Rhsm(RegistrationBase):
if org_id:
args.extend(['--org', org_id])
if server_proxy_hostname and server_proxy_port:
args.extend(['--proxy', server_proxy_hostname + ':' + server_proxy_port])
if server_proxy_user:
args.extend(['--proxyuser', server_proxy_user])
if server_proxy_password:
args.extend(['--proxypassword', server_proxy_password])
if activationkey:
args.extend(['--activationkey', activationkey])
else:
@ -365,12 +374,6 @@ class Rhsm(RegistrationBase):
args.extend(['--consumerid', consumer_id])
if environment:
args.extend(['--environment', environment])
if server_proxy_hostname and server_proxy_port:
args.extend(['--proxy', server_proxy_hostname + ':' + server_proxy_port])
if server_proxy_user:
args.extend(['--proxyuser', server_proxy_user])
if server_proxy_password:
args.extend(['--proxypassword', server_proxy_password])
if release:
args.extend(['--release', release])

Loading…
Cancel
Save