I don't think we need to delete this artifact right now
This commit is contained in:
parent
603881d990
commit
76ea73c5b2
|
@ -42,11 +42,5 @@ func (a *Artifact) State(name string) interface{} {
|
||||||
|
|
||||||
// Destroy deletes the custom image associated with the artifact.
|
// Destroy deletes the custom image associated with the artifact.
|
||||||
func (a *Artifact) Destroy() error {
|
func (a *Artifact) Destroy() error {
|
||||||
client := a.driver.Snapshots()
|
return nil
|
||||||
mic := a.driver.MachineImages()
|
|
||||||
input := &compute.DeleteSnapshotInput{
|
|
||||||
Snapshot: a.Snapshot.Name,
|
|
||||||
MachineImage: a.Snapshot.MachineImage,
|
|
||||||
}
|
|
||||||
return client.DeleteSnapshot(mic, input)
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue