Update mongo_return.py

This commit is contained in:
rhealitycheck 2015-09-24 15:20:25 -05:00 committed by rallytime
parent f796c9a44b
commit e39a57afe1

View File

@ -120,7 +120,7 @@ def _get_conn(ret):
password = _options.get('password')
indexes = _options.get('indexes', False)
# at some point we should remove support for
# at some point we should remove support for
# pymongo versions < 2.3 until then there are
# a bunch of these sections that need to be supported
@ -132,7 +132,7 @@ def _get_conn(ret):
if user and password:
mdb.authenticate(user, password)
if indexes:
if float(version) > 2.3:
mdb.saltReturns.create_index('minion')