fix: fixed format parsing

This commit is contained in:
iam1337 2023-02-19 00:29:36 +03:00
parent 0e7ced8995
commit 0ea3c7a4cc

View File

@ -104,7 +104,7 @@ func (p Plugin) exec(host string, wg *sync.WaitGroup, errChannel chan error) {
for _, key := range p.Config.Envs {
key = strings.ToUpper(key)
if val, found := os.LookupEnv(key); found {
env = append(env, p.format(p.Config.EnvsFormat, "NAME", key, "VALUE", val))
env = append(env, p.format(p.Config.EnvsFormat, "{NAME}", key, "{VALUE}", val))
}
}