Skip to content

Commit 0394cfe

Browse files
author
Elie
committed
Fix crash for google_bigquery_table
1 parent fa70206 commit 0394cfe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/remote/google/google_bigquery_table_enumerator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (e *GoogleBigqueryTableEnumerator) Enumerate() ([]*resource.Resource, error
3939
string(e.SupportedType()),
4040
trimResourceName(res.GetName()),
4141
map[string]interface{}{
42-
"name": res.DisplayName,
42+
"friendly_name": res.DisplayName,
4343
},
4444
),
4545
)

pkg/resource/google/google_bigquery_table.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const GoogleBigqueryTableResourceType = "google_bigquery_table"
77
func initGoogleBigqueryTableMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) {
88
resourceSchemaRepository.SetHumanReadableAttributesFunc(GoogleBigqueryTableResourceType, func(res *resource.Resource) map[string]string {
99
return map[string]string{
10-
"name": *res.Attrs.GetString("name"),
10+
"name": *res.Attrs.GetString("friendly_name"),
1111
}
1212
})
1313
}

0 commit comments

Comments
 (0)