mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 13:11:19 -03:30
Fix a dictionary reference when getting the license type on import
This commit is contained in:
parent
ff14c5bafb
commit
450baf2e8d
@ -852,7 +852,7 @@ class Command(NoArgsCommand):
|
||||
if license_info.get('license_key', 'UNLICENSED') == 'UNLICENSED':
|
||||
logger.error(LICENSE_NON_EXISTANT_MESSAGE)
|
||||
raise CommandError('No license found!')
|
||||
elif license_info('license_type', 'UNLICENSED') == 'open':
|
||||
elif license_info.get('license_type', 'UNLICENSED') == 'open':
|
||||
return
|
||||
available_instances = license_info.get('available_instances', 0)
|
||||
free_instances = license_info.get('free_instances', 0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user