fix(agent): Correctly reload configuration files (#12453)

This commit is contained in:
Joshua Powers 2023-01-04 02:40:39 -07:00 committed by GitHub
parent 53200be2dc
commit 07e4e72a0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -111,6 +111,11 @@ func (t *Telegraf) GetSecretStore(id string) (telegraf.SecretStore, error) {
}
func (t *Telegraf) reloadLoop() error {
_, err := t.loadConfiguration()
if err != nil {
return err
}
reload := make(chan bool, 1)
reload <- true
for <-reload {