diff --git a/awx/conf/fields.py b/awx/conf/fields.py index b117bdf809..a560d3a637 100644 --- a/awx/conf/fields.py +++ b/awx/conf/fields.py @@ -1,7 +1,5 @@ # Python -import json import logging -import os import urlparse # Django diff --git a/awx/conf/management/commands/migrate_to_database_settings.py b/awx/conf/management/commands/migrate_to_database_settings.py index d369f362a0..36fd783475 100644 --- a/awx/conf/management/commands/migrate_to_database_settings.py +++ b/awx/conf/management/commands/migrate_to_database_settings.py @@ -112,7 +112,7 @@ class Command(BaseCommand): if os.path.exists(license_file): try: raw_license_data = open(license_file).read() - license_data = json.loads(raw_license_data) + json.loads(raw_license_data) except Exception as e: raise CommandError('Error reading license from {0}: {1!r}'.format(license_file, e)) if self.backup_suffix: