mirror of
https://github.com/ansible/awx.git
synced 2026-04-06 18:49:21 -02:30
Fix an issue where an unlicensed system would throw errors
In the case where the license was entirely not present but the tower license module was present
This commit is contained in:
@@ -254,7 +254,7 @@ class BaseAccess(object):
|
||||
|
||||
def check_license(self, add_host_name=None, feature=None, check_expiration=True):
|
||||
validation_info = get_licenser().validate()
|
||||
if validation_info['license_type'] == 'open':
|
||||
if validation_info.get('license_type', 'UNLICENSED') == 'open':
|
||||
return
|
||||
|
||||
if ('test' in sys.argv or 'py.test' in sys.argv[0] or 'jenkins' in sys.argv) and not os.environ.get('SKIP_LICENSE_FIXUP_FOR_TEST', ''):
|
||||
|
||||
Reference in New Issue
Block a user