helper/config: copy template path properly

This commit is contained in:
Mitchell Hashimoto 2015-06-13 22:56:36 -07:00
parent 1d94e0f8e3
commit dc8c94890a
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ func Decode(target interface{}, config *DecodeOpts, raws ...interface{}) error {
if config.InterpolateContext == nil {
config.InterpolateContext = ctx
} else {
config.InterpolateContext.TemplatePath = ctx.TemplatePath
config.InterpolateContext.UserVariables = ctx.UserVariables
}
ctx = config.InterpolateContext