mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Update mongo_future_return.py
Tracks the version so that it can compare pymongo versions and support older versions as well as the new versions that don't support "Connection"
This commit is contained in:
parent
9061cccc4a
commit
2eb4744ccc
@ -69,6 +69,7 @@ import salt.ext.six as six
|
||||
try:
|
||||
import pymongo
|
||||
version = pymongo.version
|
||||
version = '.'.join(version.split('.')[:2])
|
||||
HAS_PYMONGO = True
|
||||
except ImportError:
|
||||
HAS_PYMONGO = False
|
||||
|
Loading…
Reference in New Issue
Block a user