Update mongo_return.py

This commit is contained in:
rhealitycheck 2015-09-24 15:00:18 -05:00
parent 912e567577
commit 977e55531b

View File

@ -133,7 +133,7 @@ def _get_conn(ret):
if user and password:
mdb.authenticate(user, password)
if indexes:
if indexes:
if float(version) > 2.3:
mdb.saltReturns.create_index('minion')
mdb.saltReturns.create_index('jid')