Update mongo_return.py

This commit is contained in:
rhealitycheck 2015-09-24 15:00:18 -05:00 committed by rallytime
parent 30d07cbb27
commit f796c9a44b

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')