X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_ro%2Fwim%2Fhttp_handler.py;h=b88dab3fe50df8c2fafb5ad10af3dba8ebd2be0d;hb=1d55a23c9cd32f17bb7a6f21e5b6c2b476c5804f;hp=f5eeed992a46ce17e51e471c5f3ed6e1e838ae27;hpb=f2813e8e41b842c0f7ad2a2fc95a1195e18cded8;p=osm%2FRO.git diff --git a/osm_ro/wim/http_handler.py b/osm_ro/wim/http_handler.py index f5eeed99..b88dab3f 100644 --- a/osm_ro/wim/http_handler.py +++ b/osm_ro/wim/http_handler.py @@ -120,6 +120,9 @@ class WimHandler(BaseHandler): def http_get_wim(self, tenant_id, wim_id): tenant_id = None if tenant_id == 'any' else tenant_id wim = self.engine.get_wim(wim_id, tenant_id) + mappings = self.engine.get_wim_port_mappings(wim_id) + wim['config'] = utils.merge_dicts(wim.get('config', {}) or {}, + wim_port_mapping=mappings) return format_out({'wim': wim}) @route('POST', '/wims')