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