From 1b9a6c69a4e287ea5cd7b8dc9dd14f9fa321887c Mon Sep 17 00:00:00 2001 From: The Magician Date: Wed, 6 Mar 2019 12:05:43 -0800 Subject: [PATCH] Handle instances not found in attached disk resource (#497) /cc @rileykarson --- 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 f792ba4f302..5486bf8a316 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