mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update mongo_return.py
This commit is contained in:
parent
f796c9a44b
commit
e39a57afe1
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue