Skip to content

Commit

Permalink
incorporate feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
leehinman committed May 19, 2021
1 parent 4ef34ea commit 1004e17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x-pack/filebeat/input/awss3/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (f *readerConfig) Validate() error {
return fmt.Errorf("max_bytes <%v> must be greater than 0", f.MaxBytes)
}
if f.ExpandEventListFromField != "" && f.ContentType != "" && f.ContentType != "application/json" {
return fmt.Errorf("content_type must be `application/json` to be used with expand_event_list_from_field")
return fmt.Errorf("content_type must be `application/json` when expand_event_list_from_field is used")
}

return nil
Expand Down
2 changes: 1 addition & 1 deletion x-pack/filebeat/input/awss3/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func TestConfig(t *testing.T) {
"expand_event_list_from_field": "Records",
"content_type": "text/plain",
},
"content_type must be `application/json` to be used with expand_event_list_from_field",
"content_type must be `application/json` when expand_event_list_from_field is used",
nil,
},
}
Expand Down

0 comments on commit 1004e17

Please sign in to comment.