From c61198ed82e1823a8b16f8e67105880008e03306 Mon Sep 17 00:00:00 2001 From: Riley Karson Date: Mon, 4 Mar 2019 22:59:30 +0000 Subject: [PATCH] Handle instances not found in attached disk resource Signed-off-by: Modular Magician --- google-beta/resource_compute_attached_disk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-beta/resource_compute_attached_disk.go b/google-beta/resource_compute_attached_disk.go index f792ba4f30..5486bf8a31 100644 --- a/google-beta/resource_compute_attached_disk.go +++ b/google-beta/resource_compute_attached_disk.go @@ -126,7 +126,7 @@ func resourceAttachedDiskRead(d *schema.ResourceData, meta interface{}) error { instance, err := config.clientCompute.Instances.Get(zv.Project, zv.Zone, zv.Name).Do() if err != nil { - return err + return handleNotFoundError(err, d, fmt.Sprintf("AttachedDisk %q", d.Id())) } // Iterate through the instance's attached disks as this is the only way to