From 474e557497a99baab2fb362f4489a3c1fa4a383d Mon Sep 17 00:00:00 2001 From: Jerry Schneider Date: Fri, 8 Jul 2016 09:06:19 -0700 Subject: [PATCH] added mongodb:// to authenticated host uri --- src/MongoDBLibrary/mongo_connection_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MongoDBLibrary/mongo_connection_manager.py b/src/MongoDBLibrary/mongo_connection_manager.py index b64cc10..ff5efcc 100644 --- a/src/MongoDBLibrary/mongo_connection_manager.py +++ b/src/MongoDBLibrary/mongo_connection_manager.py @@ -22,8 +22,8 @@ def connect_to_mongodb(self, dbHost='localhost', dbPort=27017, dbMaxPoolSize=10, Example usage: | # To connect to foo.bar.org's MongoDB service on port 27017 | | Connect To MongoDB | foo.bar.org | ${27017} | - | # Or for an authenticated connection | - | Connect To MongoDB | admin:admin@foo.bar.org | ${27017} | + | # Or for an authenticated connection, note addtion of "mongodb://" to host uri | + | Connect To MongoDB | mongodb://admin:admin@foo.bar.org | ${27017} | """ dbapiModuleName = 'pymongo'