projects
/
osm
/
LCM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix(configuration): juju related changes to honor descriptor changes introduced in...
[osm/LCM.git]
/
osm_lcm
/
data_utils
/
vnfd.py
diff --git
a/osm_lcm/data_utils/vnfd.py
b/osm_lcm/data_utils/vnfd.py
index
16257db
..
f816a8d
100644
(file)
--- a/
osm_lcm/data_utils/vnfd.py
+++ b/
osm_lcm/data_utils/vnfd.py
@@
-139,3
+139,13
@@
def get_number_of_instances(vnfd, vdu_id):
),
lambda a_vdu: a_vdu["vdu-id"] == vdu_id
)["number-of-instances"]
),
lambda a_vdu: a_vdu["vdu-id"] == vdu_id
)["number-of-instances"]
+
+
+def get_juju_ee_ref(vnfd, entity_id):
+ return list_utils.find_in_list(
+ get_configuration(vnfd, entity_id).get(
+ "execution-environment-list",
+ []
+ ),
+ lambda ee: "juju" in ee
+ )