From d968abfb870cdcf106d3b82503a8cb327a009664 Mon Sep 17 00:00:00 2001 From: Federico Stagni Date: Thu, 27 Jun 2024 11:03:43 +0200 Subject: [PATCH] f --- src/DIRAC/Core/Utilities/ElasticSearchDB.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/DIRAC/Core/Utilities/ElasticSearchDB.py b/src/DIRAC/Core/Utilities/ElasticSearchDB.py index d70cab88019..e2f9cc2fc54 100644 --- a/src/DIRAC/Core/Utilities/ElasticSearchDB.py +++ b/src/DIRAC/Core/Utilities/ElasticSearchDB.py @@ -217,7 +217,9 @@ def getIndexPrefix(self): return self.__indexPrefix @ifConnected - def addIndexTemplate(self, name: str, index_patterns: list, mapping: dict, priority: int = 1, settings=None): + def addIndexTemplate( + self, name: str, index_patterns: list, mapping: dict, priority: int = 1, settings: dict = None + ) -> dict: """Adds an index template. :param self: self reference