Skip to content

Commit 197ad82

Browse files
committed
Use proper retry_on_conflict for helpers.expand_action
As per https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html#bulk-update, retry_on_conflict should not be preceeded by an underscore.
1 parent f8dbb11 commit 197ad82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch/helpers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def expand_action(data):
3838
action = {op_type: {}}
3939
for key in ('_index', '_parent', '_percolate', '_routing', '_timestamp',
4040
'_type', '_version', '_version_type', '_id',
41-
'_retry_on_conflict', 'pipeline'):
41+
'retry_on_conflict', 'pipeline'):
4242
if key in data:
4343
action[op_type][key] = data.pop(key)
4444

0 commit comments

Comments
 (0)