fix 952 key error kdu_name 31/8331/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 5 Dec 2019 15:04:39 +0000 (15:04 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 5 Dec 2019 15:04:39 +0000 (15:04 +0000)
Change-Id: I1cb111825e84d216f469fb320806413009705c6d
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osm_lcm/ns.py

index 8470086..a76c121 100644 (file)
@@ -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)