Ejemplo n.º 1
0
func (this *OpenStack) ImageDelete(imageIdentification string) error {
	err := image.Delete(this.ImageClient, imageIdentification).ExtractErr()
	if err != nil && !strings.Contains(err.Error(), "Image with identifier "+imageIdentification+" not found") {
		return err
	} else {
		return nil
	}
}
Ejemplo n.º 2
0
func (os *OpenStack) DeleteImage(imageID string) error {
	err := image.Delete(os.ImageClient, imageID).ExtractErr()
	if err != nil && !strings.Contains(err.Error(), "Image with identifier "+imageID+" not found") {
		return err
	} else {
		return nil
	}
}