mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 11:25:08 -02:30
Wrap up other places where the old license access method is used
This commit is contained in:
@@ -1180,7 +1180,7 @@ class Command(NoArgsCommand):
|
||||
|
||||
def check_license(self):
|
||||
reader = LicenseReader()
|
||||
license_info = reader.from_file()
|
||||
license_info = reader.from_database()
|
||||
if not license_info or len(license_info) == 0:
|
||||
self.logger.error(LICENSE_NON_EXISTANT_MESSAGE)
|
||||
raise CommandError('No Tower license found!')
|
||||
|
||||
Reference in New Issue
Block a user