Handle instances not found in attached disk resource (#3183)

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
The Magician 2019-03-06 12:05:40 -08:00 committed by Riley Karson
parent b9eb735747
commit f9598c4b81

View File

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