From 55d5256a169d52c4cffb8599c867c861f6eecae0 Mon Sep 17 00:00:00 2001 From: "Alexie (Boyong) Madolid" Date: Fri, 9 Aug 2024 14:45:58 +0800 Subject: [PATCH] [MINOR]: Only get secret from ElasticSearch if automated --- jaseci_core/jaseci/extens/svc/elastic_svc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jaseci_core/jaseci/extens/svc/elastic_svc.py b/jaseci_core/jaseci/extens/svc/elastic_svc.py index c7050a66d6..836a71d326 100644 --- a/jaseci_core/jaseci/extens/svc/elastic_svc.py +++ b/jaseci_core/jaseci/extens/svc/elastic_svc.py @@ -45,7 +45,7 @@ class ElasticService(JsOrc.CommonService): def run(self): kube = JsOrc.svc("kube", KubeService) - if kube.is_running(): + if self.automated and kube.is_running(): elasticsearches = kube.resolve_manifest( self.manifest, *JsOrc.overrided_namespace("elastic", self.manifest_type) ).get("Elasticsearch", [])