fix license not found err msg

This commit is contained in:
Chris Meyers
2016-12-19 10:39:28 -05:00
parent 4f9d2fbde3
commit a95880b60a
2 changed files with 1 additions and 471 deletions

View File

@@ -1191,7 +1191,7 @@ class Command(NoArgsCommand):
def check_license(self):
license_info = TaskEnhancer().validate_enhancements()
if not license_info or len(license_info) == 0:
if license_info.get('license_key', 'UNLICENSED') == 'UNLICENSED':
self.logger.error(LICENSE_NON_EXISTANT_MESSAGE)
raise CommandError('No Tower license found!')
available_instances = license_info.get('available_instances', 0)