From c80bfdba5bdff39d67de52bfba477aa5d0599908 Mon Sep 17 00:00:00 2001 From: bravof Date: Fri, 11 Dec 2020 11:08:13 -0300 Subject: [PATCH] fix(kdu): kdu-profiles uses name instead of id Change-Id: If0539994cdfe857fe44120c41f26d9ebfdec9646 Signed-off-by: bravof --- osm_lcm/data_utils/vnfd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osm_lcm/data_utils/vnfd.py b/osm_lcm/data_utils/vnfd.py index 668fab9..b12f7d0 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): -- 2.25.1