From 7add187a0bde7fe38e19f906ce4334aafd847921 Mon Sep 17 00:00:00 2001 From: David Garcia Date: Wed, 18 Aug 2021 14:52:52 +0200 Subject: [PATCH] Fix bug 1638: 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 89f6199..cca0cab 100644 --- a/n2vc/k8s_helm_base_conn.py +++ b/n2vc/k8s_helm_base_conn.py @@ -646,8 +646,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