Skip to content

Commit feb4929

Browse files
committed
address pr comment
1 parent bd3c5be commit feb4929

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎packages/aws/data_stream/guardduty/agent/stream/httpjson.yml.hbs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ chain:
8080
target: body.findings
8181
cursor:
8282
last_execution_datetime:
83-
value: '[[with $f := (index .last_response.body "findings")]][[if (ne (len $f) 50)]][[.last_event.updatedAt]][[end]][[end]]'
83+
value: '[[$f := (index .last_response.body "findings")]][[if $f]][[if (ne (len $f) 50)]][[.last_event.updatedAt]][[end]][[end]]'
8484
ignore_empty_value: true
8585
tags:
8686
{{#if preserve_original_event}}

‎packages/aws/data_stream/securityhub_insights/agent/stream/httpjson.yml.hbs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ response.pagination:
9494
- set:
9595
# Set a NextToken value if one actually exists, but continue either way.
9696
target: body.NextToken
97-
value: '[[.last_response.body.NextToken]]'
97+
value: '[[with (index .last_response.body "NextToken")]][[.]][[end]]'
9898
fail_on_template_error: false
9999
- delete:
100100
target: header.Authorization

0 commit comments

Comments
 (0)