aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhongyuzhao <zhao.hongyu@zte.com.cn>2019-09-29 15:19:05 +0800
committerhongyuzhao <zhao.hongyu@zte.com.cn>2019-09-29 15:20:19 +0800
commit1edc360ac43f5f6d82ae64ec1e5dd2efe39fcd81 (patch)
treeb86b2f1c69b7b8d13a1927eb45f0308921280204
parent71ae9e8fc8c846ac9644f37f96112c688af23f08 (diff)
Code optimization2
Change-Id: I5251e88201d60666717a074d1238ebaba395780b Issue-ID: VFC-1431 Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
-rw-r--r--lcm/ns/views/deprecated/inst_ns_post_deal_view.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lcm/ns/views/deprecated/inst_ns_post_deal_view.py b/lcm/ns/views/deprecated/inst_ns_post_deal_view.py
index 70c8f4aa..5978d638 100644
--- a/lcm/ns/views/deprecated/inst_ns_post_deal_view.py
+++ b/lcm/ns/views/deprecated/inst_ns_post_deal_view.py
@@ -26,6 +26,7 @@ from lcm.pub.database.models import NSInstModel, ServiceBaseInfoModel
from lcm.pub.exceptions import BadRequestException
from lcm.pub.utils.restcall import req_by_msb
from lcm.pub.utils.values import ignore_case_get
+from .common import view_safe_call_with_log
logger = logging.getLogger(__name__)
@@ -38,6 +39,7 @@ class NSInstPostDealView(APIView):
status.HTTP_500_INTERNAL_SERVER_ERROR: "Inner error"
}
)
+ @view_safe_call_with_log(logger=logger)
def post(self, request, ns_instance_id):
logger.debug("Enter NSInstPostDealView::post %s, %s", request.data, ns_instance_id)
ns_post_status = ignore_case_get(request.data, 'status')