mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
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:
parent
2eb4744ccc
commit
8e698dfb07
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user