diff options
author | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-03-03 12:36:37 +0800 |
---|---|---|
committer | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-03-03 12:36:37 +0800 |
commit | c0ef1a8d7bf569fe6656bf0113bc9ab1bcb9c342 (patch) | |
tree | d57f12760dd4c7fbb8fee089282f9fbbcfecabae /gvnfmadapter | |
parent | 09203a114f98a4f2d67eb3d1c8f1d81ab68f6415 (diff) |
Fix vfc-gvnfmdriver sonar bugs
Change-Id: Ib0a3bed1fa01a98f0baea15dd3f86218dbcc7c96
Issue-ID: VFC-781
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'gvnfmadapter')
-rw-r--r-- | gvnfmadapter/driver/interfaces/views.py | 2 | ||||
-rw-r--r-- | gvnfmadapter/tox.ini | 2 |
2 files changed, 1 insertions, 3 deletions
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 |