Added a fix for performing Day1 and Day2 in a KDU using Helm based Execution Environments
Change-Id: I5f38f35e6144abdf048d85b776687f43ebcbc3e7
Signed-off-by: jegan <jegan.s@tataelxsi.co.in>
diff --git a/osm_lcm/data_utils/vnfd.py b/osm_lcm/data_utils/vnfd.py
index 954a84c..c4aee2e 100644
--- a/osm_lcm/data_utils/vnfd.py
+++ b/osm_lcm/data_utils/vnfd.py
@@ -167,6 +167,13 @@
)
+def get_helm_ee_ref(vnfd, entity_id):
+ return list_utils.find_in_list(
+ get_configuration(vnfd, entity_id).get("execution-environment-list", []),
+ lambda ee: "helm-chart" in ee,
+ )
+
+
def find_software_version(vnfd: dict) -> str:
"""Find the sotware version in the VNFD descriptors