Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
47c83965
Commit
47c83965
authored
Jun 10, 2013
by
gw0 [http://gw.tnode.com/]
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix `mongodb_user` compatibility with MongoDB 2.2 (used in Debian 7).
parent
1fd863cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
library/database/mongodb_user
+7
-2
No files found.
library/database/mongodb_user
View file @
47c83965
...
...
@@ -81,11 +81,16 @@ author: Elliott Foster
import
ConfigParser
try
:
from
pymongo
import
MongoClient
from
pymongo.errors
import
ConnectionFailure
from
pymongo.errors
import
OperationFailure
from
pymongo
import
MongoClient
except
ImportError
:
pymongo_found
=
False
try
:
# for older PyMongo 2.2
from
pymongo
import
Connection
as
MongoClient
except
ImportError
:
pymongo_found
=
False
else
:
pymongo_found
=
True
else
:
pymongo_found
=
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment