From: bravof Date: Fri, 11 Dec 2020 14:08:13 +0000 (-0300) Subject: fix(kdu): kdu-profiles uses name instead of id X-Git-Tag: release-v9.0-start~3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F00%2F10100%2F1;p=osm%2FLCM.git fix(kdu): kdu-profiles uses name instead of id Change-Id: If0539994cdfe857fe44120c41f26d9ebfdec9646 Signed-off-by: bravof --- diff --git a/osm_lcm/data_utils/vnfd.py b/osm_lcm/data_utils/vnfd.py index 668fab93..b12f7d03 100644 --- a/osm_lcm/data_utils/vnfd.py +++ b/osm_lcm/data_utils/vnfd.py @@ -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):