diff --git a/pkg/remote/google/google_compute_network_enumerator.go b/pkg/remote/google/google_compute_network_enumerator.go index 3ae13290..07e0e262 100644 --- a/pkg/remote/google/google_compute_network_enumerator.go +++ b/pkg/remote/google/google_compute_network_enumerator.go @@ -38,7 +38,7 @@ func (e *GoogleComputeNetworkEnumerator) Enumerate() ([]*resource.Resource, erro string(e.SupportedType()), trimResourceName(res.GetName()), map[string]interface{}{ - "display_name": res.DisplayName, + "name": res.DisplayName, }, ), ) diff --git a/pkg/resource/google/google_compute_network.go b/pkg/resource/google/google_compute_network.go index 5164a143..b679a9d8 100644 --- a/pkg/resource/google/google_compute_network.go +++ b/pkg/resource/google/google_compute_network.go @@ -13,7 +13,7 @@ func initGoogleComputeNetworkMetadata(resourceSchemaRepository resource.SchemaRe }) resourceSchemaRepository.SetResolveReadAttributesFunc(GoogleComputeNetworkResourceType, func(res *resource.Resource) map[string]string { return map[string]string{ - "name": *res.Attributes().GetString("display_name"), + "name": *res.Attributes().GetString("name"), } }) resourceSchemaRepository.SetFlags(GoogleComputeNetworkResourceType, resource.FlagDeepMode)