From: David Garcia Date: Wed, 18 Aug 2021 12:52:52 +0000 (+0200) Subject: Fix bug 1529: Give warning when removing unexisting chart X-Git-Tag: v9.1.5 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=c24d48fa54b3d2b5f27430dabd2c88fcce5ee98b;p=osm%2FN2VC.git Fix bug 1529: Give warning when removing unexisting chart Change-Id: I4620fe7b2aac1e9c9109ad1e87e5b0b5d585cde6 Signed-off-by: David Garcia --- 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