summaryrefslogtreecommitdiffstats
path: root/vio/vio/pub
diff options
context:
space:
mode:
authorxinhuili <lxinhui@vmware.com>2017-10-31 10:37:02 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-31 10:37:02 +0000
commitd84b547bf4aa3b12109677d7d0c5a7759ead80b5 (patch)
tree81cb05ec07c6e476a7b79b6981a0e06d762f44fc /vio/vio/pub
parent0a5efffd79eaf4d28370add436f387f2993ca4f3 (diff)
parent6b4a98c714abf92c01ade2334304529fca57d4c4 (diff)
Merge "Add some functions of fake_cloud"
Diffstat (limited to 'vio/vio/pub')
-rw-r--r--vio/vio/pub/utils/syscomm.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/vio/vio/pub/utils/syscomm.py b/vio/vio/pub/utils/syscomm.py
index 451548d..f1db022 100644
--- a/vio/vio/pub/utils/syscomm.py
+++ b/vio/vio/pub/utils/syscomm.py
@@ -47,7 +47,10 @@ class Catalogs(object):
self.ct = defaultdict(dict)
def storeEndpoint(self, vimid, endpoints):
- self.ct.setdefault(vimid, endpoints)
+ if vimid in self.ct:
+ self.ct[vimid].update(endpoints)
+ else:
+ self.ct.setdefault(vimid, endpoints)
def getEndpointBy(self, vimid, serverType, interface='public'):