fix(configuration): juju related changes to honor descriptor changes introduced in v8 and fixes for new configuration model
Change-Id: Ib5131a94b944c1aed985c2a612cf2b5d871673de
Signed-off-by: bravof <fbravo@whitestack.com>
diff --git a/osm_lcm/data_utils/vnfd.py b/osm_lcm/data_utils/vnfd.py
index 16257db..f816a8d 100644
--- a/osm_lcm/data_utils/vnfd.py
+++ b/osm_lcm/data_utils/vnfd.py
@@ -139,3 +139,13 @@
),
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
+ )