diff --git a/platform/api/openstack/api.go b/platform/api/openstack/api.go index 9e6c69771..f7770a105 100644 --- a/platform/api/openstack/api.go +++ b/platform/api/openstack/api.go @@ -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) }