fix(kdu): kdu-profiles uses name instead of id 00/10100/1
authorbravof <fbravo@whitestack.com>
Fri, 11 Dec 2020 14:08:13 +0000 (11:08 -0300)
committerbravof <fbravo@whitestack.com>
Fri, 11 Dec 2020 14:08:40 +0000 (11:08 -0300)
Change-Id: If0539994cdfe857fe44120c41f26d9ebfdec9646
Signed-off-by: bravof <fbravo@whitestack.com>
osm_lcm/data_utils/vnfd.py

index 668fab9..b12f7d0 100644 (file)
@@ -91,7 +91,7 @@ def get_vdu_profile(vnfd, vdu_profile_id):
 def get_kdu_profile(vnfd, kdu_profile_id):
     return list_utils.find_in_list(
         vnfd.get("df", ())[0]["kdu-profile"],
-        lambda kdu_profile: kdu_profile["id"] == kdu_profile_id)
+        lambda kdu_profile: kdu_profile["name"] == kdu_profile_id)
 
 
 def get_vnf_configuration(vnfd):