优化代码

This commit is contained in:
GoEdgeLab
2022-09-21 15:09:39 +08:00
parent 38f3db7478
commit 49a29fd928
6 changed files with 13 additions and 13 deletions

View File

@@ -459,7 +459,7 @@ func (this *DNSDomainService) findClusterDNSChanges(cluster *models.NodeCluster,
if len(cluster.Dns) > 0 {
dnsConfig, _ := cluster.DecodeDNSConfig()
if dnsConfig != nil {
cnameRecords = dnsConfig.CNameRecords
cnameRecords = dnsConfig.CNAMERecords
if dnsConfig.TTL > 0 {
ttl = dnsConfig.TTL
}