mirror of
https://github.com/hashicorp/packer.git
synced 2026-04-27 09:09:52 -04:00
16 lines
321 B
Go
16 lines
321 B
Go
package ncloud
|
|
|
|
import (
|
|
"github.com/hashicorp/packer/packer-plugin-sdk/multistep"
|
|
)
|
|
|
|
func processStepResult(err error, sayError func(error), state multistep.StateBag) multistep.StepAction {
|
|
if err != nil {
|
|
state.Put("Error", err)
|
|
sayError(err)
|
|
|
|
return multistep.ActionHalt
|
|
}
|
|
|
|
return multistep.ActionContinue
|
|
}
|