Skip to content

Commit f9598c4

Browse files
modular-magicianrileykarson
authored andcommitted
Handle instances not found in attached disk resource (#3183)
Signed-off-by: Modular Magician <[email protected]>
1 parent b9eb735 commit f9598c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/resource_compute_attached_disk.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func resourceAttachedDiskRead(d *schema.ResourceData, meta interface{}) error {
126126

127127
instance, err := config.clientCompute.Instances.Get(zv.Project, zv.Zone, zv.Name).Do()
128128
if err != nil {
129-
return err
129+
return handleNotFoundError(err, d, fmt.Sprintf("AttachedDisk %q", d.Id()))
130130
}
131131

132132
// Iterate through the instance's attached disks as this is the only way to

0 commit comments

Comments
 (0)