Skip to content

Commit

Permalink
Use default config when creating the input (#22126) (#22139)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2f7b15b)
  • Loading branch information
marc-gr authored Oct 26, 2020
1 parent be69843 commit af00eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/filebeat/input/httpjson/input_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (m inputManager) Init(grp unison.Group, mode v2.Mode) error {
// Create creates a cursor input manager if the config has a date cursor set up,
// otherwise it creates a stateless input manager.
func (m inputManager) Create(cfg *common.Config) (v2.Input, error) {
var config config
config := newDefaultConfig()
if err := cfg.Unpack(&config); err != nil {
return nil, err
}
Expand Down

0 comments on commit af00eaf

Please sign in to comment.