mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
Fix missing if condition in uses_mongo.
This commit is contained in:
@@ -38,8 +38,9 @@ class Command(BaseCommand):
|
|||||||
uses_mongo = system_tracking # noqa
|
uses_mongo = system_tracking # noqa
|
||||||
|
|
||||||
# If we do not need Mongo, return a non-zero exit status.
|
# If we do not need Mongo, return a non-zero exit status.
|
||||||
print('MongoDB NOT required')
|
if not uses_mongo:
|
||||||
sys.exit(1)
|
print('MongoDB NOT required')
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
# We do need Mongo, return zero.
|
# We do need Mongo, return zero.
|
||||||
print('MongoDB required')
|
print('MongoDB required')
|
||||||
|
|||||||
Reference in New Issue
Block a user