mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 20:07:37 -02:30
Fix a dictionary reference when getting the license type on import
This commit is contained in:
@@ -852,7 +852,7 @@ class Command(NoArgsCommand):
|
|||||||
if license_info.get('license_key', 'UNLICENSED') == 'UNLICENSED':
|
if license_info.get('license_key', 'UNLICENSED') == 'UNLICENSED':
|
||||||
logger.error(LICENSE_NON_EXISTANT_MESSAGE)
|
logger.error(LICENSE_NON_EXISTANT_MESSAGE)
|
||||||
raise CommandError('No license found!')
|
raise CommandError('No license found!')
|
||||||
elif license_info('license_type', 'UNLICENSED') == 'open':
|
elif license_info.get('license_type', 'UNLICENSED') == 'open':
|
||||||
return
|
return
|
||||||
available_instances = license_info.get('available_instances', 0)
|
available_instances = license_info.get('available_instances', 0)
|
||||||
free_instances = license_info.get('free_instances', 0)
|
free_instances = license_info.get('free_instances', 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user