feature: bsu, cancel function implementation

This commit is contained in:
Marin Salinas 2019-02-07 16:23:36 -06:00 committed by Megan Marsh
parent 85d601dd81
commit 4c04df26fd
1 changed files with 4 additions and 1 deletions

View File

@ -81,5 +81,8 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
} }
func (b *Builder) Cancel() { func (b *Builder) Cancel() {
log.Println("[Debug] BSU Builder Run function") if b.runner != nil {
log.Println("Cancelling the step runner...")
b.runner.Cancel()
}
} }