From 46939773b9556a7bd212315517b4e28bd734832d Mon Sep 17 00:00:00 2001 From: Louis TOUSSAINT Date: Fri, 9 Jul 2021 15:55:44 +0200 Subject: [PATCH] Issue 823: route53 zone enumerator must use SupportedType() --- pkg/remote/aws/route53_zone_enumerator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/remote/aws/route53_zone_enumerator.go b/pkg/remote/aws/route53_zone_enumerator.go index 94ce3f89..534d0e65 100644 --- a/pkg/remote/aws/route53_zone_enumerator.go +++ b/pkg/remote/aws/route53_zone_enumerator.go @@ -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))