post-processor/vagrant: fix interpolation

This commit is contained in:
Mitchell Hashimoto 2015-06-23 08:39:57 -07:00
parent ec9be0928b
commit d429b75fcc
1 changed files with 6 additions and 7 deletions

View File

@ -76,13 +76,12 @@ func (p *PostProcessor) PostProcessProvider(name string, provider Provider, ui p
ui.Say(fmt.Sprintf("Creating Vagrant box for '%s' provider", name)) ui.Say(fmt.Sprintf("Creating Vagrant box for '%s' provider", name))
outputPath, err := interpolate.Render(config.OutputPath, &interpolate.Context{ config.ctx.Data = &outputPathTemplate{
Data: &outputPathTemplate{ ArtifactId: artifact.Id(),
ArtifactId: artifact.Id(), BuildName: config.PackerBuildName,
BuildName: config.PackerBuildName, Provider: name,
Provider: name, }
}, outputPath, err := interpolate.Render(config.OutputPath, &config.ctx)
})
if err != nil { if err != nil {
return nil, false, err return nil, false, err
} }