mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 23:16:01 -03:30
System tracking is off if there is no license.
This commit is contained in:
@@ -20,6 +20,11 @@ class Command(BaseCommand):
|
|||||||
license_reader = TaskSerializer()
|
license_reader = TaskSerializer()
|
||||||
license_data = license_reader.from_file()
|
license_data = license_reader.from_file()
|
||||||
|
|
||||||
|
# Does the license have features, at all?
|
||||||
|
# If there is no license yet, then all features are clearly off.
|
||||||
|
if 'features' not in license_data:
|
||||||
|
return False
|
||||||
|
|
||||||
# Does the license contain the system tracking feature?
|
# Does the license contain the system tracking feature?
|
||||||
# If and only if it does, MongoDB should run.
|
# If and only if it does, MongoDB should run.
|
||||||
system_tracking = license_data['features']['system_tracking']
|
system_tracking = license_data['features']['system_tracking']
|
||||||
|
|||||||
Reference in New Issue
Block a user