Allow plugins to load environment variable (#1727)

* Allow plugins to load environment variable
This commit is contained in:
AlteredCoder 2022-09-08 11:41:28 +02:00 committed by GitHub
parent f3317f78d5
commit b06167a3fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 1 deletions

View file

@ -89,6 +89,7 @@ func (s *Splunk) Configure(ctx context.Context, config *protobufs.Config) (*prot
d := PluginConfig{}
err := yaml.Unmarshal(config.Config, &d)
s.PluginConfigByName[d.Name] = d
logger.Debug(fmt.Sprintf("Splunk plugin '%s' use URL '%s'", d.Name, d.URL))
return &protobufs.Empty{}, err
}