packer-cn/builder/azure/common/state_bag.go

9 lines
204 B
Go

package common
import "github.com/hashicorp/packer/packer-plugin-sdk/multistep"
func IsStateCancelled(stateBag multistep.StateBag) bool {
_, ok := stateBag.GetOk(multistep.StateCancelled)
return ok
}