Skip to content

Commit

Permalink
fix load checking in setup
Browse files Browse the repository at this point in the history
  • Loading branch information
fearful-symmetry committed Sep 22, 2023
1 parent 7d3cd5f commit a4bd6ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/idxmgmt/index_support.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func (m *indexManager) Setup(loadTemplate, loadILM LoadMode) error {
// this is because the DSL API directly references the datastream,
// so the datastream must be created first under DSL
// If we're writing to a file, it doesn't matter
if ilmComponent.load && m.clientHandler.Mode() == lifecycle.ILM || !m.clientHandler.IsElasticsearch() {
if ilmComponent.load && (m.clientHandler.Mode() == lifecycle.ILM || !m.clientHandler.IsElasticsearch()) {
// install ilm policy
policyCreated, err := m.ilm.EnsurePolicy(ilmComponent.overwrite)
if err != nil {
Expand Down

0 comments on commit a4bd6ce

Please sign in to comment.