projects
/
osm
/
POL.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "added env vars for mongo ha"
[osm/POL.git]
/
osm_policy_module
/
common
/
common_db_client.py
diff --git
a/osm_policy_module/common/common_db_client.py
b/osm_policy_module/common/common_db_client.py
index
83bb46c
..
41ce975
100644
(file)
--- a/
osm_policy_module/common/common_db_client.py
+++ b/
osm_policy_module/common/common_db_client.py
@@
-30,8
+30,7
@@
class CommonDbClient:
def __init__(self):
cfg = Config.instance()
self.common_db = dbmongo.DbMongo()
def __init__(self):
cfg = Config.instance()
self.common_db = dbmongo.DbMongo()
- self.common_db.db_connect({'host': cfg.OSMPOL_DATABASE_HOST,
- 'port': int(cfg.OSMPOL_DATABASE_PORT),
+ self.common_db.db_connect({'uri': cfg.OSMPOL_DATABASE_URI,
'name': 'osm'})
def get_vnfr(self, nsr_id: str, member_index: int):
'name': 'osm'})
def get_vnfr(self, nsr_id: str, member_index: int):