diff options
Diffstat (limited to 'lcm/lcm/nf/views.py')
-rw-r--r-- | lcm/lcm/nf/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lcm/lcm/nf/views.py b/lcm/lcm/nf/views.py index 94860d79..0db9d5fa 100644 --- a/lcm/lcm/nf/views.py +++ b/lcm/lcm/nf/views.py @@ -72,7 +72,8 @@ class CreateVnfAndQueryVnfs(APIView): if not req_serializer.is_valid(): raise NFLCMException(req_serializer.errors) - nf_inst_id = CreateVnf(req_serializer.data).do_biz() + resp = CreateVnf(req_serializer.data).do_biz() + nf_inst_id = resp.get('id', 'undefined') create_vnf_resp_serializer = CreateVnfRespSerializer(data={"vnfInstanceId": nf_inst_id}) if not create_vnf_resp_serializer.is_valid(): |