Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
max107 committed Jan 4, 2024
1 parent f36321e commit 2d833c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/integrations/kafka_exporter/kafka_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ func New(logger log.Logger, c *Config) (integrations.Integration, error) {
return nil, fmt.Errorf("empty kafka_uris provided")
}
if c.UseTLS {
if c.CAFile != "" && (c.CertFile == "" || c.KeyFile == "") {
return nil, fmt.Errorf("tls is enabled but key pair was not provided")
if c.CAFile == "" && (c.CertFile == "" || c.KeyFile == "") {
return nil, fmt.Errorf("tls is enabled but key pair or ca certificate was not provided")
}
}
if c.UseSASL && (c.SASLPassword == "" || c.SASLUsername == "") {
Expand Down

0 comments on commit 2d833c3

Please sign in to comment.