mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
fix unused params in: providers/desec
This commit is contained in:
@ -35,7 +35,7 @@ func nativeToRecords(n resourceRecord, origin string) (rcs []*models.RecordConfi
|
|||||||
return rcs
|
return rcs
|
||||||
}
|
}
|
||||||
|
|
||||||
func recordsToNative(rcs []*models.RecordConfig, origin string) []resourceRecord {
|
func recordsToNative(rcs []*models.RecordConfig) []resourceRecord {
|
||||||
// Take a list of RecordConfig and return an equivalent list of resourceRecord.
|
// Take a list of RecordConfig and return an equivalent list of resourceRecord.
|
||||||
// deSEC requires one resourceRecord for each label:key tuple, therefore we
|
// deSEC requires one resourceRecord for each label:key tuple, therefore we
|
||||||
// might collapse many RecordConfig into one resourceRecord.
|
// might collapse many RecordConfig into one resourceRecord.
|
||||||
|
@ -198,7 +198,7 @@ func (c *desecProvider) GetZoneRecordsCorrections(dc *models.DomainConfig, exist
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//it must be an update or create, both can be done with the same api call.
|
//it must be an update or create, both can be done with the same api call.
|
||||||
ns := recordsToNative(desiredRecords[label], dc.Name)
|
ns := recordsToNative(desiredRecords[label])
|
||||||
if len(ns) > 1 {
|
if len(ns) > 1 {
|
||||||
panic("we got more than one resource record to create / modify")
|
panic("we got more than one resource record to create / modify")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user