provider/aws: Propagate errors from DetachVolume
This commit is contained in:
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…
Reference in New Issue