System tracking is off if there is no license.

This commit is contained in:
Luke Sneeringer 2015-05-19 16:17:54 -04:00
parent 56f06033ae
commit 71fc2320d0

View File

@ -20,6 +20,11 @@ class Command(BaseCommand):
license_reader = TaskSerializer()
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?
# If and only if it does, MongoDB should run.
system_tracking = license_data['features']['system_tracking']