summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2019-04-06 08:26:56 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2019-04-06 08:26:56 +0800
commit3cd63752dfcdc32454e26b04a79ee7ddb7eb0c99 (patch)
treeb13100817e15549e49c8395b169e61286fb126df
parent10815c65561e07b6d3dae0aeb04f43904116401c (diff)
Refactor codes for inst vnf
Change-Id: I8c73685deb0bcf3518e59c127fc944653f56c9e7 Issue-ID: VFC-1306 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--lcm/lcm/nf/views/instantiate_vnf_view.py2
1 files changed, 2 insertions, 0 deletions
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)