projects
/
osm
/
LCM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d41dbd6
)
fix(kdu): kdu-profiles uses name instead of id
00/10100/1
author
bravof
<fbravo@whitestack.com>
Fri, 11 Dec 2020 14:08:13 +0000
(11:08 -0300)
committer
bravof
<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
patch
|
blob
|
history
diff --git
a/osm_lcm/data_utils/vnfd.py
b/osm_lcm/data_utils/vnfd.py
index
668fab9
..
b12f7d0
100644
(file)
--- 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):