provider/aws: Propagate errors from DetachVolume

pull/8479/head
David Tolnay 10 years ago
parent ab5b463923
commit b09e042bf5

@ -161,6 +161,10 @@ func resourceAwsVolumeAttachmentDelete(d *schema.ResourceData, meta interface{})
}
_, err := conn.DetachVolume(opts)
if err != nil {
return fmt.Errorf("Failed to detach Volume (%s) from Instance (%s): %s",
vID, iID, err)
}
stateConf := &resource.StateChangeConf{
Pending: []string{"detaching"},
Target: []string{"detached"},

Loading…
Cancel
Save