From 2b83a9fa1daad721c22c82e8895f466c45d3655d Mon Sep 17 00:00:00 2001 From: David Garcia Date: Wed, 18 Aug 2021 14:52:52 +0200 Subject: [PATCH] Fix bug 1529: Give warning when removing unexisting chart Change-Id: I4620fe7b2aac1e9c9109ad1e87e5b0b5d585cde6 Signed-off-by: David Garcia --- n2vc/k8s_helm_base_conn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/n2vc/k8s_helm_base_conn.py b/n2vc/k8s_helm_base_conn.py index a79f038..2225be3 100644 --- a/n2vc/k8s_helm_base_conn.py +++ b/n2vc/k8s_helm_base_conn.py @@ -593,8 +593,8 @@ class K8sHelmBaseConnector(K8sConnector): # look for instance to obtain namespace instance_info = await self.get_instance_info(cluster_uuid, kdu_instance) if not instance_info: - raise K8sException("kdu_instance {} not found".format(kdu_instance)) - + self.log.warning(("kdu_instance {} not found".format(kdu_instance))) + return True # init env, paths paths, env = self._init_paths_env( cluster_name=cluster_id, create_if_not_exist=True -- 2.25.1