builder/vmware: Implement cancel

This commit is contained in:
Mitchell Hashimoto 2013-06-05 17:52:37 -07:00
parent bc670323c7
commit daf076bbd9
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import (
"github.com/mitchellh/mapstructure"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"log"
)
const BuilderId = "mitchellh.vmware"
@ -68,4 +69,8 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook) packer.Artifact {
}
func (b *Builder) Cancel() {
if b.runner != nil {
log.Println("Cancelling the step runner...")
b.runner.Cancel()
}
}