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:
parent
31d0342d41
commit
38bfc82e98
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user