From 5639fda432a9daaef570244192cc4ed2a5ee32b1 Mon Sep 17 00:00:00 2001 From: Luke Sneeringer Date: Thu, 28 May 2015 11:40:06 -0500 Subject: [PATCH] Send a non-0 exit code if no license. --- awx/api/management/commands/uses_mongo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/api/management/commands/uses_mongo.py b/awx/api/management/commands/uses_mongo.py index 430e354f3c..e215963e29 100644 --- a/awx/api/management/commands/uses_mongo.py +++ b/awx/api/management/commands/uses_mongo.py @@ -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.