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