mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
Fallback to RH Candlepin Verify setting for OCP
This commit is contained in:
parent
86d0ee590f
commit
cb86193459
@ -175,7 +175,7 @@ class Licenser(object):
|
||||
|
||||
|
||||
def get_rhsm_subs(self, host, user, pw):
|
||||
verify = getattr(settings, 'REDHAT_CANDLEPIN_VERIFY', False)
|
||||
verify = getattr(settings, 'REDHAT_CANDLEPIN_VERIFY', True)
|
||||
json = []
|
||||
try:
|
||||
subs = requests.get(
|
||||
@ -207,7 +207,8 @@ class Licenser(object):
|
||||
try:
|
||||
verify = str(self.config.get("rhsm", "repo_ca_cert"))
|
||||
except Exception as e:
|
||||
raise OSError('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)
|
||||
json = []
|
||||
try:
|
||||
orgs = requests.get(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user