1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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
This commit is contained in:
Giuseppe Mancuso 2018-12-14 18:27:58 +01:00 committed by ansibot
parent 4ca38afe4a
commit d29f647f09

View file

@ -348,6 +348,15 @@ class Rhsm(RegistrationBase):
if org_id: if org_id:
args.extend(['--org', 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: if activationkey:
args.extend(['--activationkey', activationkey]) args.extend(['--activationkey', activationkey])
else: else:
@ -365,12 +374,6 @@ class Rhsm(RegistrationBase):
args.extend(['--consumerid', consumer_id]) args.extend(['--consumerid', consumer_id])
if environment: if environment:
args.extend(['--environment', 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: if release:
args.extend(['--release', release]) args.extend(['--release', release])