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: updated deprecated alicloud_dns resources #1962

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/GoogleCloudPlatform/terraformer

go 1.22
go 1.22.0

require (
cloud.google.com/go v0.110.2 // indirect
Expand Down
6 changes: 3 additions & 3 deletions providers/alicloud/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func resourceFromDomain(domain alidns.DomainInDescribeDomains) terraformutils.Re
return terraformutils.NewResource(
domain.DomainName, // id
domain.DomainId+"__"+domain.DomainName, // nolint
"alicloud_dns",
"alicloud_alidns_domain",
"alicloud",
map[string]string{},
[]string{},
Expand All @@ -40,9 +40,9 @@ func resourceFromDomain(domain alidns.DomainInDescribeDomains) terraformutils.Re

func resourceFromDomainRecord(record alidns.Record) terraformutils.Resource {
return terraformutils.NewResource(
record.RecordId, // nolint
record.RecordId, // id
record.RecordId+"__"+record.DomainName, // nolint
"alicloud_dns_record",
"alicloud_alidns_record",
"alicloud",
map[string]string{},
[]string{},
Expand Down