mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-06-29 06:42:36 +00:00
Handle instances not found in attached disk resource (#3183)
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
b9eb735747
commit
f9598c4b81
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user