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

9 lines
179 B
Go

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