Skip to content

Commit

Permalink
Remove the injectPreferV2Template decorator.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakerouse committed May 11, 2020
1 parent 23e9865 commit 962bb80
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 251 deletions.
65 changes: 0 additions & 65 deletions x-pack/elastic-agent/pkg/agent/application/decorators.go

This file was deleted.

183 changes: 0 additions & 183 deletions x-pack/elastic-agent/pkg/agent/application/decorators_test.go

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func getProgramsFromConfig(log *logger.Logger, cfg *config.Config) (map[string][
log,
router,
&configModifiers{
Decorators: []decoratorFunc{injectMonitoring, injectPreferV2Template},
Decorators: []decoratorFunc{injectMonitoring},
Filters: []filterFunc{filters.ConstraintFilter},
},
monitor,
Expand Down
2 changes: 1 addition & 1 deletion x-pack/elastic-agent/pkg/agent/application/local_mode.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func newLocal(
log,
router,
&configModifiers{
Decorators: []decoratorFunc{injectMonitoring, injectPreferV2Template},
Decorators: []decoratorFunc{injectMonitoring},
Filters: []filterFunc{filters.ConstraintFilter},
},
monitor,
Expand Down
2 changes: 1 addition & 1 deletion x-pack/elastic-agent/pkg/agent/application/managed_mode.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func newManaged(
log,
router,
&configModifiers{
Decorators: []decoratorFunc{injectMonitoring, injectPreferV2Template},
Decorators: []decoratorFunc{injectMonitoring},
Filters: []filterFunc{filters.ConstraintFilter},
},
monitor,
Expand Down

0 comments on commit 962bb80

Please sign in to comment.