From 3cd63752dfcdc32454e26b04a79ee7ddb7eb0c99 Mon Sep 17 00:00:00 2001 From: fujinhua Date: Sat, 6 Apr 2019 08:26:56 +0800 Subject: Refactor codes for inst vnf Change-Id: I8c73685deb0bcf3518e59c127fc944653f56c9e7 Issue-ID: VFC-1306 Signed-off-by: fujinhua --- lcm/lcm/nf/views/instantiate_vnf_view.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lcm') diff --git a/lcm/lcm/nf/views/instantiate_vnf_view.py b/lcm/lcm/nf/views/instantiate_vnf_view.py index 1a7905aa..b285cc8c 100644 --- a/lcm/lcm/nf/views/instantiate_vnf_view.py +++ b/lcm/lcm/nf/views/instantiate_vnf_view.py @@ -24,6 +24,7 @@ from lcm.nf.serializers.instantiate_vnf_request import InstantiateVnfRequestSeri from lcm.nf.serializers.job_identifier import JobIdentifierSerializer from lcm.pub.exceptions import NFLCMException from lcm.pub.utils.jobutil import JobUtil +from .common import view_safe_call_with_log logger = logging.getLogger(__name__) @@ -36,6 +37,7 @@ class InstantiateVnfView(APIView): status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error" } ) + @view_safe_call_with_log(logger=logger) def post(self, request, instanceid): logger.debug("InstantiateVnf--post::> %s" % request.data) -- cgit 1.2.3-korg