From 450baf2e8d56b213750c4ed278e6f58bf7be6975 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Fri, 14 Jul 2017 14:08:22 -0400 Subject: [PATCH] Fix a dictionary reference when getting the license type on import --- awx/main/management/commands/inventory_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/management/commands/inventory_import.py b/awx/main/management/commands/inventory_import.py index e1e4d24170..4e6c0a66ee 100644 --- a/awx/main/management/commands/inventory_import.py +++ b/awx/main/management/commands/inventory_import.py @@ -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)