diff --git a/esrally/metrics.py b/esrally/metrics.py index d4d4586d8..6249e94e8 100644 --- a/esrally/metrics.py +++ b/esrally/metrics.py @@ -53,10 +53,10 @@ def put_template(self, name, template): return self.guarded(self._client.indices.put_index_template, name=name, **tmpl) def template_exists(self, name): - return self.guarded(self._client.indices.exists_template, name=name) + return self.guarded(self._client.indices.exists_index_template, name=name) def delete_template(self, name): - self.guarded(self._client.indices.delete_template, name=name) + self.guarded(self._client.indices.delete_index_template, name=name) def delete_by_query(self, index, body): return self.guarded(self._client.delete_by_query, index=index, body=body)