mirror of
https://github.com/ansible/awx.git
synced 2026-04-14 14:39:26 -02:30
Merge pull request #8770 from rooftopcellist/sat_include_port
Read in and use the Sat port if applicable for Subscriptions Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -260,11 +260,15 @@ class Licenser(object):
|
|||||||
|
|
||||||
|
|
||||||
def get_satellite_subs(self, host, user, pw):
|
def get_satellite_subs(self, host, user, pw):
|
||||||
|
port = None
|
||||||
try:
|
try:
|
||||||
verify = str(self.config.get("rhsm", "repo_ca_cert"))
|
verify = str(self.config.get("rhsm", "repo_ca_cert"))
|
||||||
|
port = str(self.config.get("server", "port"))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.exception('Unable to read rhsm config to get ca_cert location. {}'.format(str(e)))
|
logger.exception('Unable to read rhsm config to get ca_cert location. {}'.format(str(e)))
|
||||||
verify = getattr(settings, 'REDHAT_CANDLEPIN_VERIFY', True)
|
verify = getattr(settings, 'REDHAT_CANDLEPIN_VERIFY', True)
|
||||||
|
if port:
|
||||||
|
host = ':'.join([host, port])
|
||||||
json = []
|
json = []
|
||||||
try:
|
try:
|
||||||
orgs = requests.get(
|
orgs = requests.get(
|
||||||
|
|||||||
Reference in New Issue
Block a user