mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 22:19:28 -02:30
clarify messaging and behavior when subscription-manager isn't installed
This commit is contained in:
@@ -154,7 +154,8 @@ class Licenser(object):
|
|||||||
try:
|
try:
|
||||||
host = 'https://' + str(self.config.get("server", "hostname"))
|
host = 'https://' + str(self.config.get("server", "hostname"))
|
||||||
except:
|
except:
|
||||||
raise OSError('Cannot access rhsm.conf, make sure subscription manager is installed and configured.')
|
logger.exception('Cannot access rhsm.conf, make sure subscription manager is installed and configured.')
|
||||||
|
host = None
|
||||||
if not host:
|
if not host:
|
||||||
host = getattr(settings, 'REDHAT_CANDLEPIN_HOST', None)
|
host = getattr(settings, 'REDHAT_CANDLEPIN_HOST', None)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user