use new method of building runner

This commit is contained in:
Matthew Hooker 2017-09-11 10:38:47 -07:00 committed by Vijaya Bhaskar Reddy Kondreddi
parent 5937f75898
commit 91d66fb67c
1 changed files with 1 additions and 11 deletions

View File

@ -471,17 +471,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.