From 78adbaf46ed9e09999b894e65b48e02fc1315475 Mon Sep 17 00:00:00 2001 From: Pedro Escaleira Date: Wed, 20 Apr 2022 18:00:17 +0100 Subject: [PATCH] Bug 1999 fixed: DeployedK8sResource is now obtaining the model name from the namespace Change-Id: Id7e08031097b3a1e66475c49af4fe1cfd233930e Signed-off-by: Pedro Escaleira --- osm_lcm/data_utils/vca.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osm_lcm/data_utils/vca.py b/osm_lcm/data_utils/vca.py index f4235cb..0f3ec17 100644 --- a/osm_lcm/data_utils/vca.py +++ b/osm_lcm/data_utils/vca.py @@ -152,7 +152,7 @@ class Relation(dict): class DeployedComponent(dict): - """Represents a deployed component (nsr["_admin"]["deployed"])""" + """Represents a deployed component (nsr["_admin"]["deployed"]["VCA" | "K8s"])""" def __init__(self, data: Dict[str, Any]): """ @@ -185,7 +185,7 @@ class DeployedK8sResource(DeployedComponent): @property def ee_id(self): """Returns the execution environment id""" - model = self["kdu-instance"] + model = self["namespace"] application_name = self["resource-name"] return f"{model}.{application_name}.k8s" -- 2.25.1