mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-12-28 03:04:05 +08:00
namedotcom provider did not handle "CREATE" records properly. This fixes https://github.com/StackExchange/dnscontrol/issues/28
This commit is contained in:
parent
12f006441b
commit
18bb291bea
1 changed files with 4 additions and 1 deletions
|
@ -41,7 +41,10 @@ func (n *nameDotCom) GetDomainCorrections(dc *models.DomainConfig) ([]*models.Co
|
|||
corrections = append(corrections, c)
|
||||
}
|
||||
for _, cre := range create {
|
||||
rec := cre.Desired.Original.(*models.RecordConfig)
|
||||
var rec *models.RecordConfig
|
||||
if cre.Desired.Original != nil {
|
||||
rec = cre.Desired.Original.(*models.RecordConfig)
|
||||
}
|
||||
c := &models.Correction{Msg: cre.String(), F: func() error { return n.createRecord(rec, dc.Name) }}
|
||||
corrections = append(corrections, c)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue