Skip to content

Commit

Permalink
fix: unfqdn
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Sep 19, 2024
1 parent dee89ee commit c41affb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/dns/ionos/ionos.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (d *DNSProvider) Present(domain, _, keyAuth string) error {
return fmt.Errorf("ionos: failed to get zones: %w", err)
}

zone := findZone(zones, info.EffectiveFQDN)
zone := findZone(zones, dns01.UnFqdn(info.EffectiveFQDN))
if zone == nil {
return errors.New("ionos: no matching zone found for domain")
}
Expand Down Expand Up @@ -154,7 +154,7 @@ func (d *DNSProvider) CleanUp(domain, _, keyAuth string) error {
return fmt.Errorf("ionos: failed to get zones: %w", err)
}

zone := findZone(zones, info.EffectiveFQDN)
zone := findZone(zones, dns01.UnFqdn(info.EffectiveFQDN))
if zone == nil {
return errors.New("ionos: no matching zone found for domain")
}
Expand Down

0 comments on commit c41affb

Please sign in to comment.