Skip to content

Commit 21a7e67

Browse files
authored
Merge pull request ekristen#659 from caricalabs/handle-unnamed-route53-resolver-endpoints
fix: Allow Route53 Resolver Endpoint names to be absent.
2 parents 4e36993 + 88bdb3b commit 21a7e67

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

resources/route53-resolver-endpoints.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package resources
22

33
import (
44
"context"
5-
65
"fmt"
76

7+
"github.com/gotidy/ptr"
8+
89
"github.com/aws/aws-sdk-go/service/route53resolver"
910

1011
"github.com/ekristen/libnuke/pkg/registry"
@@ -94,5 +95,5 @@ func (r *Route53ResolverEndpoint) Properties() types.Properties {
9495

9596
// String implements Stringer
9697
func (r *Route53ResolverEndpoint) String() string {
97-
return fmt.Sprintf("%s (%s)", *r.id, *r.name)
98+
return fmt.Sprintf("%s (%s)", ptr.ToString(r.id), ptr.ToString(r.name))
9899
}

0 commit comments

Comments
 (0)