mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Read in and use the Sat port if applicable for Subscriptions
This commit is contained in:
parent
ea8ebe8a9f
commit
aa7514a993
@ -260,11 +260,15 @@ class Licenser(object):
|
||||
|
||||
|
||||
def get_satellite_subs(self, host, user, pw):
|
||||
port = None
|
||||
try:
|
||||
verify = str(self.config.get("rhsm", "repo_ca_cert"))
|
||||
port = str(self.config.get("server", "port"))
|
||||
except Exception as e:
|
||||
logger.exception('Unable to read rhsm config to get ca_cert location. {}'.format(str(e)))
|
||||
verify = getattr(settings, 'REDHAT_CANDLEPIN_VERIFY', True)
|
||||
if port:
|
||||
host = ':'.join([host, port])
|
||||
json = []
|
||||
try:
|
||||
orgs = requests.get(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user