X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_common%2Fdbmongo.py;h=f64949d50a612884ef786d04dc72ceb0fa6bd8f8;hb=refs%2Fchanges%2F16%2F11816%2F6;hp=8561e9693aba3c34570105ec4183a3e698de0f37;hpb=3dd0db6efaab109fa1bd43395fbbddecf1eb73d4;p=osm%2Fcommon.git diff --git a/osm_common/dbmongo.py b/osm_common/dbmongo.py index 8561e96..f64949d 100644 --- a/osm_common/dbmongo.py +++ b/osm_common/dbmongo.py @@ -105,13 +105,6 @@ class DbMongo(DbBase): self.client = MongoClient( config["uri"], replicaSet=config.get("replicaset", None) ) - else: - self.client = MongoClient( - config["host"], - config["port"], - replicaSet=config.get("replicaset", None), - ) - # TODO add as parameters also username=config.get("user"), password=config.get("password")) # when all modules are ready self.db = self.client[config["name"]] if "loglevel" in config: