Merge pull request #2130 from hashicorp/b-log-type

Fix Docker Logging Type interpolation
This commit is contained in:
Alex Dadgar 2016-12-19 13:43:52 -08:00 committed by GitHub
commit d59057c3a8

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)