Skip to content

Commit

Permalink
PR Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFriel committed Nov 15, 2023
1 parent dc357e4 commit 473ec65
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions provider/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,9 @@ func (p *dockerNativeProvider) runImageBuild(
return false, nil
}

var found bool
for i := 0; i < 5; i++ {
found, err := findImageID()
found, err = findImageID()
if err != nil {
return "", err
}
Expand All @@ -533,7 +534,7 @@ func (p *dockerNativeProvider) runImageBuild(
}
time.Sleep(1 * time.Second)
}
if imageID == "" {
if !found {
return "", fmt.Errorf("Unable to find built image in local image store")
}

Expand Down

0 comments on commit 473ec65

Please sign in to comment.