mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +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
d96462af48
commit
63153322b9
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue