Skip to content

Commit

Permalink
Handle instances not found in attached disk resource (hashicorp#497)
Browse files Browse the repository at this point in the history
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
  • Loading branch information
modular-magician authored and rileykarson committed Mar 6, 2019
1 parent 194ba77 commit 1b9a6c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google-beta/resource_compute_attached_disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b9a6c6

Please sign in to comment.