summaryrefslogtreecommitdiff
path: root/vendor/github.com/mitchellh/packer/builder/hyperv/iso/builder.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/mitchellh/packer/builder/hyperv/iso/builder.go')
-rw-r--r--vendor/github.com/mitchellh/packer/builder/hyperv/iso/builder.go15
1 files changed, 3 insertions, 12 deletions
diff --git a/vendor/github.com/mitchellh/packer/builder/hyperv/iso/builder.go b/vendor/github.com/mitchellh/packer/builder/hyperv/iso/builder.go
index e6c8d4d6..9b4065d8 100644
--- a/vendor/github.com/mitchellh/packer/builder/hyperv/iso/builder.go
+++ b/vendor/github.com/mitchellh/packer/builder/hyperv/iso/builder.go
@@ -92,7 +92,8 @@ type Config struct {
// Prepare processes the build configuration parameters.
func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
err := config.Decode(&b.config, &config.DecodeOpts{
- Interpolate: true,
+ Interpolate: true,
+ InterpolateContext: &b.config.ctx,
InterpolateFilter: &interpolate.RenderFilter{
Exclude: []string{
"boot_command",
@@ -404,17 +405,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
}
// Run the steps.
- if b.config.PackerDebug {
- pauseFn := common.MultistepDebugFn(ui)
- state.Put("pauseFn", pauseFn)
- b.runner = &multistep.DebugRunner{
- Steps: steps,
- PauseFn: pauseFn,
- }
- } else {
- b.runner = &multistep.BasicRunner{Steps: steps}
- }
-
+ b.runner = common.NewRunner(steps, b.config.PackerConfig, ui)
b.runner.Run(state)
// Report any errors.