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
405edd0718
commit
540b3f2690
@ -119,13 +119,11 @@ def _get_conn(ret):
|
||||
user = _options.get('user')
|
||||
password = _options.get('password')
|
||||
indexes = _options.get('indexes', False)
|
||||
|
||||
'''
|
||||
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
|
||||
'''
|
||||
|
||||
if float(version) > 2.3:
|
||||
conn = pymongo.MongoClient(host, port)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user