Fix crash for google_bigquery_table
parent
fa70206080
commit
0394cfeb19
|
@ -39,7 +39,7 @@ func (e *GoogleBigqueryTableEnumerator) Enumerate() ([]*resource.Resource, error
|
||||||
string(e.SupportedType()),
|
string(e.SupportedType()),
|
||||||
trimResourceName(res.GetName()),
|
trimResourceName(res.GetName()),
|
||||||
map[string]interface{}{
|
map[string]interface{}{
|
||||||
"name": res.DisplayName,
|
"friendly_name": res.DisplayName,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,7 +7,7 @@ const GoogleBigqueryTableResourceType = "google_bigquery_table"
|
||||||
func initGoogleBigqueryTableMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) {
|
func initGoogleBigqueryTableMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) {
|
||||||
resourceSchemaRepository.SetHumanReadableAttributesFunc(GoogleBigqueryTableResourceType, func(res *resource.Resource) map[string]string {
|
resourceSchemaRepository.SetHumanReadableAttributesFunc(GoogleBigqueryTableResourceType, func(res *resource.Resource) map[string]string {
|
||||||
return map[string]string{
|
return map[string]string{
|
||||||
"name": *res.Attrs.GetString("name"),
|
"name": *res.Attrs.GetString("friendly_name"),
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue