Skip to content

Commit 448f815

Browse files
committed
SUMO-0: explicitly remove outerfield for guardduty events
1 parent 5211a8d commit 448f815

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloudwatchevents/cloudwatchevents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ exports.handler = function (event, context) {
9696
}
9797

9898
//console.log(event);
99-
if ((event.source==="aws.guardduty") && (removeOuterFields)) {
99+
if ((event.source==="aws.guardduty") || (removeOuterFields)) {
100100
final_event =event.detail;
101101
} else {
102102
final_event = event;

0 commit comments

Comments
 (0)