Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ def _lambda_handler(event, context):
if is_ddb_insert_or_update:
# Generate OpenSearch payload for item
action = {'index': {'_index': doc_opensearch_index_name,
'_type': doc_type,
'_id': doc_id}}
# Add external versioning if necessary
if OPENSEARCH_USE_EXTERNAL_VERSIONING and '_version' in doc_fields:
Expand All @@ -237,7 +236,7 @@ def _lambda_handler(event, context):
# If DynamoDB REMOVE, send 'delete' to OpenSearch
elif is_ddb_delete:
action = {'delete': {'_index': doc_opensearch_index_name,
'_type': doc_type, '_id': doc_id}}
'_id': doc_id}}
if OPENSEARCH_USE_EXTERNAL_VERSIONING and '_version' in doc_fields:
action['delete'].update([
('version_type', 'external'),
Expand Down
Loading