Skip to content

Commit

Permalink
fix domainId
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunter authored and Hunter committed Sep 9, 2024
1 parent 0c1d6a2 commit a092bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/provider/amazon.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (a *AmazonDNS) ListDomains() ([]Domain, error) {
dataObj = append(dataObj, Domain{
CloudProvider: a.account.CloudProvider,
CloudName: a.account.CloudName,
DomainID: strings.TrimPrefix(tea.StringValue(domain.Id), "/"),
DomainID: strings.TrimPrefix(tea.StringValue(domain.Id), "/hostedzone/"),
DomainName: fmt.Sprintf(domainName),
DomainRemark: tea.StringValue(nil),
DomainStatus: "enable",
Expand Down

0 comments on commit a092bdb

Please sign in to comment.