Skip to content

Commit 8fbcd6a

Browse files
committed
fix lint
1 parent 7576e8b commit 8fbcd6a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

provider/alibabacloud/alibaba_cloud.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -498,19 +498,18 @@ func (p *AlibabaCloudProvider) unescapeTXTRecordValue(value string) string {
498498
}
499499

500500
func (p *AlibabaCloudProvider) createRecord(endpoint *endpoint.Endpoint, target string, hostedZoneDomains []string) error {
501-
502501
if len(hostedZoneDomains) == 0 {
503-
log.Errorf("Failed to create %s record named '%s' to '%s' for Alibaba Cloud DNS: not found any zone,please add the DNS zone first",
502+
log.Errorf("Failed to create %s record named '%s' to '%s' for Alibaba Cloud DNS: zone not found",
504503
endpoint.RecordType, endpoint.DNSName, target)
505-
return fmt.Errorf("no found any zone,please add the DNS zone first")
504+
return fmt.Errorf("zone not found")
506505
}
507506

508507
rr, domain := p.splitDNSName(endpoint.DNSName, hostedZoneDomains)
509508

510509
if domain == "" {
511-
log.Errorf("Failed to create %s record named '%s' to '%s' for Alibaba Cloud DNS: no coorsponing DNS zone found for this domain '%s',please add the DNS zone first",
510+
log.Errorf("Failed to create %s record named '%s' to '%s' for Alibaba Cloud DNS: no corresponding DNS zone found for this domain '%s'",
512511
endpoint.RecordType, endpoint.DNSName, target, endpoint.DNSName)
513-
return fmt.Errorf("no corresponding DNS zone found for this domain. Please add the DNS zone first")
512+
return fmt.Errorf("no corresponding DNS zone found for this domain")
514513
}
515514

516515
request := alidns.CreateAddDomainRecordRequest()

0 commit comments

Comments
 (0)