Do not error if compute volume attachment is missing (#13342)

https://github.com/hashicorp/terraform/issues/13334
This commit is contained in:
dannytrigo 2017-04-05 01:43:16 -04:00 committed by Paul Stack
parent d310670550
commit 92cda8f75d
1 changed files with 1 additions and 1 deletions

View File

@ -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)