Do not error if compute volume attachment is missing (#13342)
https://github.com/hashicorp/terraform/issues/13334
This commit is contained in:
parent
d310670550
commit
92cda8f75d
|
@ -121,7 +121,7 @@ func resourceComputeVolumeAttachV2Read(d *schema.ResourceData, meta interface{})
|
|||
|
||||
attachment, err := volumeattach.Get(computeClient, instanceId, attachmentId).Extract()
|
||||
if err != nil {
|
||||
return err
|
||||
return CheckDeleted(d, err, "compute_volume_attach")
|
||||
}
|
||||
|
||||
log.Printf("[DEBUG] Retrieved volume attachment: %#v", attachment)
|
||||
|
|
Loading…
Reference in New Issue