X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Finstance_topics.py;h=e53f28e3b47d863159090a79f7f4f724d9cdc71f;hp=1301985138548184312e688bb09d7de62c7a31a9;hb=e36ab859d275c9c1b863bbb6564a1da56cabe2dd;hpb=cd65be33d44114e73936813eaf790e6a12b0df63 diff --git a/osm_nbi/instance_topics.py b/osm_nbi/instance_topics.py index 1301985..e53f28e 100644 --- a/osm_nbi/instance_topics.py +++ b/osm_nbi/instance_topics.py @@ -1,5 +1,18 @@ # -*- coding: utf-8 -*- +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # import logging from uuid import uuid4 from http import HTTPStatus @@ -823,7 +836,7 @@ class NsiTopic(BaseTopic): for service in services: indata_ns = {} indata_ns["nsdId"] = service["_id"] - indata_ns["nsName"] = service["name"] + indata_ns["nsName"] = service["id"] indata_ns["vimAccountId"] = indata.get("vimAccountId") indata_ns["nsDescription"] = service["description"] indata_ns["key-pair-ref"] = None