Refactor codes for inst vnf 11/84411/1
authorfujinhua <fu.jinhua@zte.com.cn>
Sat, 6 Apr 2019 00:26:56 +0000 (08:26 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Sat, 6 Apr 2019 00:26:56 +0000 (08:26 +0800)
Change-Id: I8c73685deb0bcf3518e59c127fc944653f56c9e7
Issue-ID: VFC-1306
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/lcm/nf/views/instantiate_vnf_view.py

index 1a7905a..b285cc8 100644 (file)
@@ -24,6 +24,7 @@ from lcm.nf.serializers.instantiate_vnf_request import InstantiateVnfRequestSeri
 from lcm.nf.serializers.job_identifier import JobIdentifierSerializer\r
 from lcm.pub.exceptions import NFLCMException\r
 from lcm.pub.utils.jobutil import JobUtil\r
+from .common import view_safe_call_with_log\r
 \r
 logger = logging.getLogger(__name__)\r
 \r
@@ -36,6 +37,7 @@ class InstantiateVnfView(APIView):
             status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
         }\r
     )\r
+    @view_safe_call_with_log(logger=logger)\r
     def post(self, request, instanceid):\r
         logger.debug("InstantiateVnf--post::> %s" % request.data)\r
 \r