1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Fix missing if condition in uses_mongo.

This commit is contained in:
Luke Sneeringer 2015-05-29 12:36:37 -05:00
parent 31d0342d41
commit 38bfc82e98

View File

@ -38,8 +38,9 @@ class Command(BaseCommand):
uses_mongo = system_tracking # noqa
# If we do not need Mongo, return a non-zero exit status.
print('MongoDB NOT required')
sys.exit(1)
if not uses_mongo:
print('MongoDB NOT required')
sys.exit(1)
# We do need Mongo, return zero.
print('MongoDB required')