Skip to content

Commit

Permalink
BUGFIX: Weight Record Enable Weight Looping Fix (#7)
Browse files Browse the repository at this point in the history
* Bugfix: Enable Weight Subdomain Validation on Loop
  • Loading branch information
ruokei authored Mar 28, 2023
1 parent a0d4abc commit f03d9cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alicloud/resource_alidns_record_weight.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func (r *aliDnsRecordWeightResource) setWeight(plan *aliDnsRecordWeightResourceM
subdomainName := fmt.Sprintf("%s.%s", *responseById.Body.RR, *responseById.Body.DomainName)

for _, subdomains := range responseByName.Body.SlbSubDomains.SlbSubDomain {
if !*subdomains.Open {
if subdomainName == *subdomains.SubDomain && !*subdomains.Open {

// Enable Weight settings
setDNSSLBStatusRequest := &alicloudDnsClient.SetDNSSLBStatusRequest{
Expand Down

0 comments on commit f03d9cf

Please sign in to comment.