From: Juan Date: Fri, 16 Nov 2018 13:47:46 +0000 (-0300) Subject: url to uri X-Git-Tag: v5.0.0~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=c837a7819c5388b276ada7f29a085cd251119e4b;p=osm%2Fcommon.git url to uri Change-Id: I02e971a223c24abda93574147586964463c68674 Signed-off-by: Juan --- diff --git a/osm_common/dbmongo.py b/osm_common/dbmongo.py index 6159e6a..57ce082 100644 --- a/osm_common/dbmongo.py +++ b/osm_common/dbmongo.py @@ -80,8 +80,8 @@ class DbMongo(DbBase): master_key = config.get("commonkey") or config.get("masterpassword") if master_key: self.set_secret_key(master_key) - if config.get("url"): - self.client = MongoClient(config["url"]) + if config.get("uri"): + self.client = MongoClient(config["uri"]) else: self.client = MongoClient(config["host"], config["port"]) # TODO add as parameters also username=config.get("user"), password=config.get("password"))