Skip to content

Commit

Permalink
plugins: fix passing additional environment variables
Browse files Browse the repository at this point in the history
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
  • Loading branch information
drakkan committed Nov 5, 2024
1 parent b4acae8 commit dda8918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (c *Config) getCommand() *exec.Cmd {
}
logger.Debug(logSender, "", "additional env vars for plugin %q: %+v", c.Cmd, c.EnvVars)
for _, key := range c.EnvVars {
cmd.Env = append(cmd.Env, os.Getenv(key))
cmd.Env = append(cmd.Env, fmt.Sprintf("%s=%s", key, os.Getenv(key)))
}
return cmd
}
Expand Down

0 comments on commit dda8918

Please # to comment.