From: tierno Date: Thu, 5 Dec 2019 15:04:39 +0000 (+0000) Subject: fix 952 key error kdu_name X-Git-Tag: v7.0.0rc1~6 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=5705ed31c013e5cab19c2c01ac4429ec2fcd04bd;p=osm%2FLCM.git fix 952 key error kdu_name Change-Id: I1cb111825e84d216f469fb320806413009705c6d Signed-off-by: tierno --- diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index 8470086..a76c121 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -2373,7 +2373,7 @@ class NsLcm(LcmBase): break elif kdu_name: self.logger.debug(logging_text + "Checking actions in KDUs") - kdur = next((x for x in db_vnfr["kdur"] if x["kdu_name"] == kdu_name), None) + kdur = next((x for x in db_vnfr["kdur"] if x["kdu-name"] == kdu_name), None) desc_params = self._format_additional_params(kdur.get("additionalParams")) or {} if primitive_params: desc_params.update(primitive_params)