mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 10:57:36 -02:30
Send a non-0 exit code if no license.
This commit is contained in:
@@ -23,7 +23,8 @@ class Command(BaseCommand):
|
|||||||
# Does the license have features, at all?
|
# Does the license have features, at all?
|
||||||
# If there is no license yet, then all features are clearly off.
|
# If there is no license yet, then all features are clearly off.
|
||||||
if 'features' not in license_data:
|
if 'features' not in license_data:
|
||||||
return False
|
print('No license available.')
|
||||||
|
sys.exit(2)
|
||||||
|
|
||||||
# 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.
|
||||||
|
|||||||
Reference in New Issue
Block a user