github.com/victortrac/packer@v0.7.6-0.20160602180447-63c7fdb6e41f/builder/azure/common/state_bag.go (about)

     1  // Copyright (c) Microsoft Corporation. All rights reserved.
     2  // Licensed under the MIT License. See the LICENSE file in builder/azure for license information.
     3  
     4  package common
     5  
     6  import "github.com/mitchellh/multistep"
     7  
     8  func IsStateCancelled(stateBag multistep.StateBag) bool {
     9  	_, ok := stateBag.GetOk(multistep.StateCancelled)
    10  	return ok
    11  }