@@ -96,43 +96,6 @@ func (c *cloudnsProvider) GetNameservers(domain string) ([]*models.Nameserver, e
9696 return models .ToNameservers (names )
9797}
9898
99- // // GetDomainCorrections returns the corrections for a domain.
100- // func (c *cloudnsProvider) GetDomainCorrections(dc *models.DomainConfig) ([]*models.Correction, error) {
101- // dc, err := dc.Copy()
102- // if err != nil {
103- // return nil, err
104- // }
105-
106- // dc.Punycode()
107-
108- // if c.domainIndex == nil {
109- // if err := c.fetchDomainList(); err != nil {
110- // return nil, err
111- // }
112- // }
113- // _, ok := c.domainIndex[dc.Name]
114- // if !ok {
115- // return nil, fmt.Errorf("'%s' not a zone in ClouDNS account", dc.Name)
116- // }
117-
118- // existingRecords, err := c.GetZoneRecords(dc.Name)
119- // if err != nil {
120- // return nil, err
121- // }
122- // // Normalize
123- // models.PostProcessRecords(existingRecords)
124-
125- // // Get a list of available TTL values.
126- // // The TTL list needs to be obtained for each domain, so get it first here.
127- // c.fetchAvailableTTLValues(dc.Name)
128- // // ClouDNS can only be specified from a specific TTL list, so change the TTL in advance.
129- // for _, record := range dc.Records {
130- // record.TTL = fixTTL(record.TTL)
131- // }
132-
133- // return c.GetZoneRecordsCorrections(dc, existingRecords)
134- // }
135-
13699// GetZoneRecordsCorrections returns a list of corrections that will turn existing records into dc.Records.
137100func (c * cloudnsProvider ) GetZoneRecordsCorrections (dc * models.DomainConfig , existingRecords models.Records ) ([]* models.Correction , int , error ) {
138101 domainID , ok , err := c .idForDomain (dc .Name )
0 commit comments