Skip to content

Commit

Permalink
Merge pull request #450 from flatcar/tormath1/openstack
Browse files Browse the repository at this point in the history
openstack/api: delete image "container" when download fails
  • Loading branch information
tormath1 authored Sep 13, 2023
2 parents a30be60 + f479737 commit 6780e54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions platform/api/openstack/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ func (a *API) UploadImage(name, path string) (string, error) {

return image.Status == images.ImageStatusActive, nil
}); err != nil {
a.DeleteImage(image.ID)
return "", fmt.Errorf("getting image active: %w", err)
}

Expand Down

0 comments on commit 6780e54

Please sign in to comment.