Merge "Fix ns term logic"
authorYan Yang <yangyanyj@chinamobile.com>
Tue, 13 Nov 2018 04:36:24 +0000 (04:36 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 13 Nov 2018 04:36:24 +0000 (04:36 +0000)
1  2 
lcm/ns/biz/ns_terminate.py
lcm/pub/msapi/nslcm.py

Simple merge
@@@ -32,7 -31,8 +32,8 @@@ def call_from_ns_cancel_resource(res_ty
          # vnf
          method = "POST"
          uri = '/api/nslcm/v1/ns/terminatevnf/%s' % instid
-     req_param = {}
+     if not req_param:
+         req_param = {}
      ret = req_by_msb(uri, method, json.dumps(req_param))
 -    logger.info("[NS terminate] call vnfm [%s] result:%s" % (res_type, ret))
 +    logger.info("[NS terminate] call res_type [%s] result:%s" % (res_type, ret))
      return ret