mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-24 10:21:20 -05:00
20 lines
381 B
Go
20 lines
381 B
Go
package arm
|
|
|
|
import (
|
|
"github.com/hashicorp/packer/builder/azure/common/constants"
|
|
"github.com/hashicorp/packer/helper/multistep"
|
|
)
|
|
|
|
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
|
|
|
|
}
|