Update builder/amazon/ebs/step_create_ami.go

Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
pull/9730/head
Megan Marsh 6 years ago committed by GitHub
parent 484dbfe6ad
commit 8f362656ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -100,7 +100,7 @@ func (s *stepCreateAMI) Run(ctx context.Context, state multistep.StateBag) multi
image := imResp.Images[0]
if image != nil {
stateReason := image.StateReason
if stateReason == nil {
if stateReason != nil {
err = fmt.Errorf("Error waiting for AMI: %s. DescribeImages returned the state reason: %s", waitErr, stateReason)
}
}

Loading…
Cancel
Save