Skip to content

Commit

Permalink
Merge pull request #829 from haarchri/delegation-hostedzone
Browse files Browse the repository at this point in the history
fix(hostedzone): fix DelegationSet.id can be nil panic
  • Loading branch information
chlunde authored Sep 13, 2021
2 parents a4a50b5 + 8922d5c commit 009d9a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/clients/hostedzone/hostedzone.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ func LateInitialize(spec *v1alpha1.HostedZoneParameters, obs *route53.GetHostedZ
if obs == nil || obs.HostedZone == nil {
return
}
spec.DelegationSetID = awsclients.LateInitializeStringPtr(spec.DelegationSetID, obs.DelegationSet.Id)
if obs.DelegationSet != nil {
spec.DelegationSetID = awsclients.LateInitializeStringPtr(spec.DelegationSetID, obs.DelegationSet.Id)
}
if spec.Config == nil && obs.HostedZone != nil {
spec.Config = &v1alpha1.Config{}
}
Expand Down

0 comments on commit 009d9a9

Please sign in to comment.