Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update deprecated dns_zone field #2633

Merged
merged 11 commits into from
Jun 27, 2024
5,935 changes: 2,462 additions & 3,473 deletions internal/services/container/testdata/domain-basic.cassette.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion internal/services/domain/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ func resourceDomainRecordRead(ctx context.Context, d *schema.ResourceData, m int
return nil
}

dnsZones, err := domainAPI.ListDNSZones(&domain.ListDNSZonesRequest{DNSZone: scw.StringPtr(dnsZone)}, scw.WithAllPages(), scw.WithContext(ctx))
dnsZones, err := domainAPI.ListDNSZones(&domain.ListDNSZonesRequest{DNSZones: []string{dnsZone}}, scw.WithAllPages(), scw.WithContext(ctx))
if err != nil {
if httperrors.Is404(err) || httperrors.Is403(err) {
d.SetId("")
Expand Down
Loading
Loading