Skip to content

Commit

Permalink
Fix crash for google_bigquery_table
Browse files Browse the repository at this point in the history
  • Loading branch information
Elie committed Oct 26, 2021
1 parent fa70206 commit 0394cfe
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_bigquery_table_enumerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (e *GoogleBigqueryTableEnumerator) Enumerate() ([]*resource.Resource, error
string(e.SupportedType()),
trimResourceName(res.GetName()),
map[string]interface{}{
"name": res.DisplayName,
"friendly_name": res.DisplayName,
},
),
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/resource/google/google_bigquery_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const GoogleBigqueryTableResourceType = "google_bigquery_table"
func initGoogleBigqueryTableMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) {
resourceSchemaRepository.SetHumanReadableAttributesFunc(GoogleBigqueryTableResourceType, func(res *resource.Resource) map[string]string {
return map[string]string{
"name": *res.Attrs.GetString("name"),
"name": *res.Attrs.GetString("friendly_name"),
}
})
}

0 comments on commit 0394cfe

Please sign in to comment.