mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-18 22:11:39 -04:00
Interpolate vagrantfile_template on Vagrant post-processor (#9923)
This commit is contained in:
@@ -175,7 +175,10 @@ func (p *PostProcessor) PostProcessProvider(name string, provider Provider, ui p
|
||||
return nil, false, err
|
||||
}
|
||||
|
||||
customVagrantfile = string(customBytes)
|
||||
customVagrantfile, err = interpolate.Render(string(customBytes), &config.ctx)
|
||||
if err != nil {
|
||||
return nil, false, err
|
||||
}
|
||||
}
|
||||
|
||||
f, err := os.Create(filepath.Join(dir, "Vagrantfile"))
|
||||
|
||||
Reference in New Issue
Block a user