Fix vfc-gvnfmdriver sonar bugs 17/33917/1
authorying.yunlong <ying.yunlong@zte.com.cn>
Sat, 3 Mar 2018 04:36:37 +0000 (12:36 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Sat, 3 Mar 2018 04:36:37 +0000 (12:36 +0800)
Change-Id: Ib0a3bed1fa01a98f0baea15dd3f86218dbcc7c96
Issue-ID: VFC-781
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
gvnfmadapter/driver/interfaces/views.py
gvnfmadapter/tox.ini

index 75c0e97..eb53a33 100644 (file)
@@ -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)
index 3d6a957..cd97ddd 100644 (file)
@@ -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