Issue 823: route53 zone enumerator must use SupportedType()

main
Louis TOUSSAINT 2021-07-09 15:55:44 +02:00
parent d49ba12e4e
commit 46939773b9
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ func (e *Route53ZoneSupplier) SupportedType() resource.ResourceType {
func (e *Route53ZoneSupplier) Enumerate() ([]resource.Resource, error) {
zones, err := e.client.ListAllZones()
if err != nil {
return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsRoute53ZoneResourceType)
return nil, remoteerror.NewResourceEnumerationError(err, string(e.SupportedType()))
}
results := make([]resource.Resource, len(zones))