Send a non-0 exit code if no license.

This commit is contained in:
Luke Sneeringer 2015-05-28 11:40:06 -05:00
parent dd42f09390
commit 5639fda432

View File

@ -23,7 +23,8 @@ class Command(BaseCommand):
# 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
print('No license available.')
sys.exit(2)
# Does the license contain the system tracking feature?
# If and only if it does, MongoDB should run.