From a54150dea025a4a5341bb56c6e6230225b15e917 Mon Sep 17 00:00:00 2001 From: tierno Date: Thu, 5 Dec 2019 17:15:10 +0000 Subject: [PATCH] fix 931: issue at logging text Change-Id: I9a9ad1829022035db15a24e9a53e9c97faef6ffb Signed-off-by: tierno --- osm_lcm/ns.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index 1adcdac..47d25be 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -971,9 +971,6 @@ class NsLcm(LcmBase): 'filter': {'_id': nsr_id}, 'path': db_update_entry } - logging_text += "member_vnf_index={} vdu_id={}, vdu_index={} ".format(db_vnfr["member-vnf-index-ref"], - vdu_id, vdu_index) - step = "" try: vnfr_id = None @@ -1311,7 +1308,7 @@ class NsLcm(LcmBase): descriptor_config = vnfd.get("vnf-configuration") if descriptor_config and descriptor_config.get("juju"): self._deploy_n2vc( - logging_text=logging_text, + logging_text=logging_text + "member_vnf_index={} ".format(member_vnf_index), db_nsr=db_nsr, db_vnfr=db_vnfr, nslcmop_id=nslcmop_id, @@ -1353,7 +1350,8 @@ class NsLcm(LcmBase): for vdu_index in range(int(vdud.get("count", 1))): # TODO vnfr_params["rw_mgmt_ip"] = vdur["ip-address"] self._deploy_n2vc( - logging_text=logging_text, + logging_text=logging_text + "member_vnf_index={}, vdu_id={}, vdu_index={} ".format( + member_vnf_index, vdu_id, vdu_index), db_nsr=db_nsr, db_vnfr=db_vnfr, nslcmop_id=nslcmop_id, -- 2.25.1