Skip to content

Commit

Permalink
Merge pull request #1290 from snyk/fix/google_compute_network
Browse files Browse the repository at this point in the history
Fix google_compute_network read attributes
  • Loading branch information
eliecharra authored Dec 16, 2021
2 parents b38bf45 + a3e3902 commit d8681bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/remote/google/google_compute_network_enumerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
),
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/resource/google/google_compute_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d8681bd

Please sign in to comment.