mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
fix unused params in: providers/digitalocean
This commit is contained in:
@@ -195,7 +195,7 @@ func (api *digitaloceanProvider) GetZoneRecordsCorrections(dc *models.DomainConf
|
|||||||
corrections = append(corrections, corr)
|
corrections = append(corrections, corr)
|
||||||
}
|
}
|
||||||
for _, m := range toCreate {
|
for _, m := range toCreate {
|
||||||
req := toReq(dc, m.Desired)
|
req := toReq(m.Desired)
|
||||||
corr := &models.Correction{
|
corr := &models.Correction{
|
||||||
Msg: m.String(),
|
Msg: m.String(),
|
||||||
F: func() error {
|
F: func() error {
|
||||||
@@ -213,7 +213,7 @@ func (api *digitaloceanProvider) GetZoneRecordsCorrections(dc *models.DomainConf
|
|||||||
}
|
}
|
||||||
for _, m := range toModify {
|
for _, m := range toModify {
|
||||||
id := m.Existing.Original.(*godo.DomainRecord).ID
|
id := m.Existing.Original.(*godo.DomainRecord).ID
|
||||||
req := toReq(dc, m.Desired)
|
req := toReq(m.Desired)
|
||||||
corr := &models.Correction{
|
corr := &models.Correction{
|
||||||
Msg: fmt.Sprintf("%s, DO ID: %d", m.String(), id),
|
Msg: fmt.Sprintf("%s, DO ID: %d", m.String(), id),
|
||||||
F: func() error {
|
F: func() error {
|
||||||
@@ -304,7 +304,7 @@ func toRc(domain string, r *godo.DomainRecord) *models.RecordConfig {
|
|||||||
return t
|
return t
|
||||||
}
|
}
|
||||||
|
|
||||||
func toReq(dc *models.DomainConfig, rc *models.RecordConfig) *godo.DomainRecordEditRequest {
|
func toReq(rc *models.RecordConfig) *godo.DomainRecordEditRequest {
|
||||||
name := rc.GetLabel() // DO wants the short name or "@" for apex.
|
name := rc.GetLabel() // DO wants the short name or "@" for apex.
|
||||||
target := rc.GetTargetField() // DO uses the target field only for a single value
|
target := rc.GetTargetField() // DO uses the target field only for a single value
|
||||||
priority := 0 // DO uses the same property for MX and SRV priority
|
priority := 0 // DO uses the same property for MX and SRV priority
|
||||||
|
|||||||
Reference in New Issue
Block a user