X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Fns%2Fviews%2Fsol%2Fheal_ns_view.py;h=6c844e121fab0a1f1c2ab0cd480901f6781b1bc0;hb=0876c326a9f9809fbb35d512a4a95f9fad00e445;hp=d1ba916b6532a42d48d1d2d530831561519f447d;hpb=5cac63f5df2622bba50b27be7a89574e00e91084;p=vfc%2Fnfvo%2Flcm.git diff --git a/lcm/ns/views/sol/heal_ns_view.py b/lcm/ns/views/sol/heal_ns_view.py index d1ba916b..6c844e12 100644 --- a/lcm/ns/views/sol/heal_ns_view.py +++ b/lcm/ns/views/sol/heal_ns_view.py @@ -1,4 +1,4 @@ -# Copyright 2016-2017 ZTE Corporation. +# Copyright 2016 ZTE Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ from lcm.ns.serializers.sol.heal_serializers import HealNsReqSerializer from lcm.pub.exceptions import BadRequestException from lcm.pub.utils.jobutil import JobUtil, JOB_TYPE from lcm.ns.const import NS_OCC_BASE_URI +from lcm.ns.serializers.sol.pub_serializers import ProblemDetailsSerializer logger = logging.getLogger(__name__) @@ -29,8 +30,8 @@ class HealNSView(APIView): @swagger_auto_schema( request_body=HealNsReqSerializer(), responses={ - status.HTTP_202_ACCEPTED: None, - status.HTTP_500_INTERNAL_SERVER_ERROR: "Inner error" + status.HTTP_202_ACCEPTED: "HTTP_202_ACCEPTED", + status.HTTP_500_INTERNAL_SERVER_ERROR: ProblemDetailsSerializer() } ) def post(self, request, ns_instance_id):