fix incorrect detection of license on inventory updates

This commit is contained in:
Ryan Petrello
2020-10-22 16:07:13 -04:00
parent 05de875ace
commit 0ddf47740c
2 changed files with 1 additions and 3 deletions

View File

@@ -903,7 +903,7 @@ class Command(BaseCommand):
def check_license(self):
license_info = get_licenser().validate()
local_license_type = license_info.get('license_type', 'UNLICENSED')
if license_info.get('license_key', 'UNLICENSED') == 'UNLICENSED':
if local_license_type == 'UNLICENSED':
logger.error(LICENSE_NON_EXISTANT_MESSAGE)
raise CommandError('No license found!')
elif local_license_type == 'open':