summaryrefslogtreecommitdiff
path: root/zuul
diff options
context:
space:
mode:
authorTristan Cacqueray <tdecacqu@redhat.com>2022-08-26 12:26:45 +0000
committerTristan Cacqueray <tdecacqu@redhat.com>2022-08-26 12:29:06 +0000
commit5efc9bc0b2c6e14e2c4b85cb573b7650d7870536 (patch)
treec901848be3ca91cf7cf9590affc16a22f4369f31 /zuul
parentadadc0bdd72d98adb8896f46cf575765b5b2e874 (diff)
downloadzuul-5efc9bc0b2c6e14e2c4b85cb573b7650d7870536.tar.gz
elasticsearch: Remove the deprecated document type
According to the removal-of-types[1] documentation, it is no longer necessary to specify a document type. [1] https://www.elastic.co/guide/en/elasticsearch/reference/7.17/removal-of-types.html Change-Id: I02996ce328a48b5ae6493646abe08ebab31ec962
Diffstat (limited to 'zuul')
-rw-r--r--zuul/driver/elasticsearch/connection.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/zuul/driver/elasticsearch/connection.py b/zuul/driver/elasticsearch/connection.py
index e1ba50b37..eb696edf3 100644
--- a/zuul/driver/elasticsearch/connection.py
+++ b/zuul/driver/elasticsearch/connection.py
@@ -113,7 +113,6 @@ class ElasticsearchConnection(BaseConnection):
source['@timestamp'] = datetime.utcfromtimestamp(
int(source['start_time'])).strftime("%Y-%m-%dT%H:%M:%S.%fZ")
d['_index'] = index
- d['_type'] = 'zuul'
d['_op_type'] = 'index'
d['_source'] = source
yield d