diff --git a/abcd/backends/atoms_opensearch.py b/abcd/backends/atoms_opensearch.py index 36fcc996..eb51b91e 100644 --- a/abcd/backends/atoms_opensearch.py +++ b/abcd/backends/atoms_opensearch.py @@ -887,7 +887,7 @@ def rename_property( query = self.parser(query) logger.info("rename: query=%s, old=%s, new=%s", query, name, new_name) - script_txt = "if (!ctx._source.containsKey(params.new_name)) {{ " + script_txt = "if (!ctx._source.containsKey(params.new_name)) { " script_txt += ( f"ctx._source.{new_name} = ctx._source.{name};" " ctx._source.remove(params.name);"