From c0ef1a8d7bf569fe6656bf0113bc9ab1bcb9c342 Mon Sep 17 00:00:00 2001 From: "ying.yunlong" Date: Sat, 3 Mar 2018 12:36:37 +0800 Subject: Fix vfc-gvnfmdriver sonar bugs Change-Id: Ib0a3bed1fa01a98f0baea15dd3f86218dbcc7c96 Issue-ID: VFC-781 Signed-off-by: ying.yunlong --- gvnfmadapter/driver/interfaces/views.py | 2 -- gvnfmadapter/tox.ini | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'gvnfmadapter') diff --git a/gvnfmadapter/driver/interfaces/views.py b/gvnfmadapter/driver/interfaces/views.py index 75c0e97..eb53a33 100644 --- a/gvnfmadapter/driver/interfaces/views.py +++ b/gvnfmadapter/driver/interfaces/views.py @@ -103,7 +103,6 @@ class VnfTermInfo(APIView): logger.debug("terminate_vnf--post::> %s" % request.data) logger.debug("Terminate vnf begin!") vnfm_id = vnfmid - vnfInstanceId = vnfInstanceId try: input_data = { "terminationType": ignorcase_get(request.data, "terminationType"), @@ -148,7 +147,6 @@ class VnfQueryInfo(APIView): def get(self, request, vnfmtype, vnfmid, vnfInstanceId): logger.debug("query_vnf--post::> %s" % request.data) vnfm_id = vnfmid - vnfInstanceId = vnfInstanceId try: logger.debug("[%s] request.data=%s", fun_name(), request.data) resp = do_queryvnf(request, vnfm_id, vnfInstanceId) diff --git a/gvnfmadapter/tox.ini b/gvnfmadapter/tox.ini index 3d6a957..cd97ddd 100644 --- a/gvnfmadapter/tox.ini +++ b/gvnfmadapter/tox.ini @@ -20,4 +20,4 @@ commands = {[testenv]commands} [testenv:cov] -commands = coverage html --omit="*test*,*__init__.py,*site-packages*" -d htmlcov \ No newline at end of file +commands = coverage xml --omit="*test*,*__init__.py,*site-packages*" \ No newline at end of file -- cgit 1.2.3-korg