diff options
author | Tristan Cacqueray <tdecacqu@redhat.com> | 2022-08-26 12:26:45 +0000 |
---|---|---|
committer | Tristan Cacqueray <tdecacqu@redhat.com> | 2022-08-26 12:29:06 +0000 |
commit | 5efc9bc0b2c6e14e2c4b85cb573b7650d7870536 (patch) | |
tree | c901848be3ca91cf7cf9590affc16a22f4369f31 | |
parent | adadc0bdd72d98adb8896f46cf575765b5b2e874 (diff) | |
download | zuul-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
-rw-r--r-- | zuul/driver/elasticsearch/connection.py | 1 |
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 |