refactor: use name instead of display_name

main
sundowndev 2021-10-28 15:33:41 +02:00
parent 6f117efdb2
commit 2e6977c2c6
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ func (e *GoogleComputeHealthCheckEnumerator) Enumerate() ([]*resource.Resource,
string(e.SupportedType()),
trimResourceName(res.GetName()),
map[string]interface{}{
"display_name": res.GetDisplayName(),
"name": res.GetDisplayName(),
},
),
)

View File

@ -7,7 +7,7 @@ const GoogleComputeHealthCheckResourceType = "google_compute_health_check"
func initGoogleComputeHealthCheckMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) {
resourceSchemaRepository.SetHumanReadableAttributesFunc(GoogleComputeHealthCheckResourceType, func(res *resource.Resource) map[string]string {
return map[string]string{
"Name": *res.Attributes().GetString("display_name"),
"Name": *res.Attributes().GetString("name"),
}
})
}