fix(configuration): juju related changes to honor descriptor changes introduced in...
[osm/LCM.git] / osm_lcm / data_utils / vnfd.py
index 16257db..f816a8d 100644 (file)
@@ -139,3 +139,13 @@ def get_number_of_instances(vnfd, vdu_id):
         ),
         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
+    )