mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Update mongo_return.py
This commit is contained in:
parent
f796c9a44b
commit
e39a57afe1
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user