Merge pull request #1290 from snyk/fix/google_compute_network
Fix google_compute_network read attributesmain
commit
d8681bd1f9
|
@ -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,
|
||||
},
|
||||
),
|
||||
)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue