Fix Bug 2199 Fixing ns update operation for KNF instances
[osm/LCM.git] / osm_lcm / ns.py
index 9885f40..968e1f3 100644 (file)
@@ -5905,8 +5905,16 @@ class NsLcm(LcmBase):
                             ee_id = vca_deployed.get("ee_id")
 
                             step = "Getting descriptor config"
+                            if current_vnfd.get("kdu"):
+
+                                search_key = "kdu_name"
+                            else:
+                                search_key = "vnfd_id"
+
+                            entity_id = vca_deployed.get(search_key)
+
                             descriptor_config = get_configuration(
-                                current_vnfd, current_vnfd["id"]
+                                current_vnfd, entity_id
                             )
 
                             if "execution-environment-list" in descriptor_config: