Files
Packer-Cn/builder/azure/arm/step.go
T

21 lines
381 B
Go
Raw Normal View History

2016-04-21 16:50:03 -07:00
package arm
import (
2017-04-04 13:39:01 -07:00
"github.com/hashicorp/packer/builder/azure/common/constants"
2018-01-19 16:18:44 -08:00
"github.com/hashicorp/packer/helper/multistep"
2016-04-21 16:50:03 -07:00
)
func processStepResult(
err error, sayError func(error), state multistep.StateBag) multistep.StepAction {
if err != nil {
state.Put(constants.Error, err)
sayError(err)
return multistep.ActionHalt
}
return multistep.ActionContinue
}