Commit d429b75f authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

post-processor/vagrant: fix interpolation

parent ec9be092
...@@ -76,13 +76,12 @@ func (p *PostProcessor) PostProcessProvider(name string, provider Provider, ui p ...@@ -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
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment