Interpolate vagrantfile_template on Vagrant post-processor (#9923)

This commit is contained in:
Sylvia Moss
2020-09-16 10:08:44 +02:00
committed by GitHub
parent aeb70e6726
commit bdd736b800
9 changed files with 147 additions and 13 deletions
+4 -1
View File
@@ -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"))