diff options
Diffstat (limited to 'zte')
-rw-r--r-- | zte/vmanager/driver/interfaces/views.py | 9 | ||||
-rw-r--r-- | zte/vmanager/tox.ini | 2 |
2 files changed, 2 insertions, 9 deletions
diff --git a/zte/vmanager/driver/interfaces/views.py b/zte/vmanager/driver/interfaces/views.py index 1a1976ed..4e1f11c3 100644 --- a/zte/vmanager/driver/interfaces/views.py +++ b/zte/vmanager/driver/interfaces/views.py @@ -60,14 +60,6 @@ def ignorcase_get(args, key): return "" -def mapping_conv(keyword_map, rest_return): - resp_data = {} - for param in keyword_map: - if keyword_map[param]: - resp_data[keyword_map[param]] = ignorcase_get(rest_return, param) - return resp_data - - # Query vnfm_info from nslcm def get_vnfminfo_from_nslcm(vnfmid): ret = req_by_msb("api/nslcm/v1/vnfms/%s" % vnfmid, "GET") @@ -177,6 +169,7 @@ class InstamtiateVnf(APIView): if not instRespSerializer.is_valid(): raise Exception(instRespSerializer.errors) + logger.debug("[%s] instRespSerializer.data=%s", fun_name(), instRespSerializer.data) return Response(data=instRespSerializer.data, status=status.HTTP_200_OK) except Exception as e: logger.error("Error occurred when instantiating VNF,error:%s", e.message) diff --git a/zte/vmanager/tox.ini b/zte/vmanager/tox.ini index 2d18a624..3bbe6c8a 100644 --- a/zte/vmanager/tox.ini +++ b/zte/vmanager/tox.ini @@ -19,4 +19,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 html --omit="*test*,*__init__.py,*site-packages*" -d htmlcov
\ No newline at end of file |