X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Flcm%2Fnf%2Fviews%2Fheal_vnf_view.py;h=6b3b31397e9b2569a0a6c2decad683d0e04a6a5b;hb=d31d7c3c00b7facb05a17906e9152ee076d15a03;hp=08daa98f27225d07456b7c68900f8f3faaa9b0c4;hpb=83e33d9dd6608024dbf92cfde8daf51a298b5f54;p=vfc%2Fgvnfm%2Fvnflcm.git diff --git a/lcm/lcm/nf/views/heal_vnf_view.py b/lcm/lcm/nf/views/heal_vnf_view.py index 08daa98f..6b3b3139 100644 --- a/lcm/lcm/nf/views/heal_vnf_view.py +++ b/lcm/lcm/nf/views/heal_vnf_view.py @@ -52,8 +52,9 @@ class HealVnfView(APIView): JobUtil.add_job_status(job_id, 0, "HEAL_VNF_READY") self.heal_pre_check(instanceid, job_id) HealVnf(heal_vnf_request_serializer.data, instanceid, job_id).start() - response = Response(data=None, status=status.HTTP_202_ACCEPTED) - response["Location"] = "/vnf_lc_ops/%s" % job_id + response = Response(data={"jobId": job_id}, status=status.HTTP_202_ACCEPTED) + # todo, heal_vnf codes uses job as the status storage, not in VNFLcmOpOccModel. + # response["Location"] = "/api/vnflcm/v1/vnf_lc_ops/%s" % lcmopoccid return response except NFLCMExceptionNotFound as e: probDetail = ProblemDetailsSerializer(data={"status": status.HTTP_404_NOT_FOUND, "detail": "VNF Instance not found"})