clarify messaging and behavior when subscription-manager isn't installed

This commit is contained in:
Ryan Petrello 2020-10-22 13:20:55 -04:00
parent 10242cd6c4
commit 86d0ee590f
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -154,7 +154,8 @@ class Licenser(object):
try:
host = 'https://' + str(self.config.get("server", "hostname"))
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:
host = getattr(settings, 'REDHAT_CANDLEPIN_HOST', None)