Update mongo_return.py

same patch as for the future return. allows users to use older versions of pymongo if desired or the most recent ones.
This commit is contained in:
rhealitycheck 2015-09-21 15:19:18 -05:00
parent 2eb4744ccc
commit 8e698dfb07

View File

@ -57,6 +57,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