mirror of
https://github.com/wahyd4/telegraf.git
synced 2026-08-09 04:36:05 +10:00
Allow unconfigured SASL
This commit is contained in:
@@ -27,6 +27,9 @@ type SaramaSASL struct {
|
||||
func (c *SASLConfig) SetSaramaSASLConfig(config *sarama.Config) error {
|
||||
sasl := config.Net.SASL
|
||||
switch c.SASLMechanism {
|
||||
case "":
|
||||
// SASL is not enabled
|
||||
return nil
|
||||
case "PLAIN":
|
||||
sasl.Mechanism = sarama.SASLTypePlaintext
|
||||
case "SCRAM-SHA-256":
|
||||
|
||||
Reference in New Issue
Block a user