using runner with pause func

This commit is contained in:
bugbuilder 2017-09-01 00:33:40 -03:00
parent abc21406cb
commit 6590dfaf82
1 changed files with 1 additions and 2 deletions

View File

@ -122,8 +122,7 @@ func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (pac
Source: source,
},
}
runner := &multistep.BasicRunner{Steps: steps}
runner := common.NewRunnerWithPauseFn(steps, p.config.PackerConfig, ui, state)
runner.Run(state)
if rawErr, ok := state.GetOk("error"); ok {