From f9598c4b81c458689cc66887e8296442a7ea0fec Mon Sep 17 00:00:00 2001 From: The Magician Date: Wed, 6 Mar 2019 12:05:40 -0800 Subject: [PATCH] Handle instances not found in attached disk resource (#3183) Signed-off-by: Modular Magician --- google/resource_compute_attached_disk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/resource_compute_attached_disk.go b/google/resource_compute_attached_disk.go index f792ba4f..5486bf8a 100644 --- a/google/resource_compute_attached_disk.go +++ b/google/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