refactor: use name instead of display_name
parent
6f117efdb2
commit
2e6977c2c6
|
@ -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(),
|
||||
},
|
||||
),
|
||||
)
|
||||
|
|
|
@ -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"),
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue