fix(secretstores): Fix handling of 'id' and print failing secret-store (#12468)
This commit is contained in:
parent
6fb08bb3da
commit
b5dcc49250
|
|
@ -808,7 +808,7 @@ func (c *Config) addSecretStore(name string, table *ast.Table) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := store.Init(); err != nil {
|
if err := store.Init(); err != nil {
|
||||||
return fmt.Errorf("error initializing secretstore: %w", err)
|
return fmt.Errorf("error initializing secret-store %q: %w", storeid, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, found := c.SecretStores[storeid]; found {
|
if _, found := c.SecretStores[storeid]; found {
|
||||||
|
|
@ -1397,6 +1397,9 @@ func (c *Config) missingTomlField(_ reflect.Type, key string) error {
|
||||||
"pass", "period", "precision",
|
"pass", "period", "precision",
|
||||||
"tagdrop", "tagexclude", "taginclude", "tagpass", "tags":
|
"tagdrop", "tagexclude", "taginclude", "tagpass", "tags":
|
||||||
|
|
||||||
|
// Secret-store options to ignore
|
||||||
|
case "id":
|
||||||
|
|
||||||
// Parser options to ignore
|
// Parser options to ignore
|
||||||
case "data_type", "influx_parser_type":
|
case "data_type", "influx_parser_type":
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue