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:
rhealitycheck 2015-09-21 15:18:05 -05:00
parent 9061cccc4a
commit 2eb4744ccc

View File

@ -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