Skip to content

Commit

Permalink
fix instance config
Browse files Browse the repository at this point in the history
  • Loading branch information
jedupau committed Jan 31, 2025
1 parent 3b41196 commit a14ad13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion comp/core/autodiscovery/integration/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ type CommonInstanceConfig struct {
Name string `yaml:"name"`
Namespace string `yaml:"namespace"`
NoIndex bool `yaml:"no_index"`
HAEnabled bool `yaml:"ha_enabled"`
HAEnabled *bool `yaml:"ha_enabled"`
}

// CommonGlobalConfig holds the reserved fields for the yaml init_config data
Expand Down
4 changes: 2 additions & 2 deletions pkg/collector/corechecks/checkbase.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ func (c *CheckBase) CommonConfigure(senderManager sender.SenderManager, initConf
s.SetNoIndex(commonOptions.NoIndex)
}

if commonOptions.HAEnabled {
c.haEnabled = true
if commonOptions.HAEnabled != nil {
c.haEnabled = *commonOptions.HAEnabled
}

c.source = source
Expand Down

0 comments on commit a14ad13

Please sign in to comment.