Fix bug 1638: Give warning when removing unexisting chart 14/11114/2
authorDavid Garcia <david.garcia@canonical.com>
Wed, 18 Aug 2021 12:52:52 +0000 (14:52 +0200)
committerDavid Garcia <david.garcia@canonical.com>
Wed, 18 Aug 2021 12:59:22 +0000 (14:59 +0200)
Change-Id: I4620fe7b2aac1e9c9109ad1e87e5b0b5d585cde6
Signed-off-by: David Garcia <david.garcia@canonical.com>
n2vc/k8s_helm_base_conn.py

index 89f6199..cca0cab 100644 (file)
@@ -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