From 58fbe0a46aa2dedfdcd10494855d5a4dab732a2b Mon Sep 17 00:00:00 2001 From: Edward Sun <42220489+edwardmedia@users.noreply.github.com> Date: Tue, 24 Aug 2021 09:51:19 -0700 Subject: [PATCH] fixed error in ds (#5127) --- .../terraform/data_sources/data_source_dns_managed_zone.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmv1/third_party/terraform/data_sources/data_source_dns_managed_zone.go b/mmv1/third_party/terraform/data_sources/data_source_dns_managed_zone.go index 2beea291fc39..40426a68e362 100644 --- a/mmv1/third_party/terraform/data_sources/data_source_dns_managed_zone.go +++ b/mmv1/third_party/terraform/data_sources/data_source_dns_managed_zone.go @@ -66,7 +66,7 @@ func dataSourceDnsManagedZoneRead(d *schema.ResourceData, meta interface{}) erro zone, err := config.NewDnsClient(userAgent).ManagedZones.Get( project, name).Do() if err != nil { - return err + return handleNotFoundError(err, d, fmt.Sprintf("dataSourceDnsManagedZone %q", name)) } if err := d.Set("name_servers", zone.NameServers); err != nil {