Fix Docker Logging Type interpolation

This PR fixes an issue that made Logging.Type un-interpretable in the
docker driver.
This commit is contained in:
Alex Dadgar
2016-12-19 13:42:58 -08:00
parent a51adaf609
commit f36ccccdc2

View File

@@ -188,8 +188,8 @@ func NewDockerDriverConfig(task *structs.Task, env *env.TaskEnvironment) (*Docke
dconf.Auth[i].ServerAddress = env.ReplaceEnv(a.ServerAddress)
}
for _, l := range dconf.Logging {
l.Type = env.ReplaceEnv(l.Type)
for i, l := range dconf.Logging {
dconf.Logging[i].Type = env.ReplaceEnv(l.Type)
for _, c := range l.ConfigRaw {
for k, v := range c {
delete(c, k)