Update builder/amazon/ebs/step_create_ami.go

Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
This commit is contained in:
Megan Marsh 2020-08-07 08:02:57 -07:00 committed by GitHub
parent 484dbfe6ad
commit 8f362656ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}