1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Eliminate models.StringsToNameservers() (#1486)

* Eliminate StringsToNameservers()

* update comments
This commit is contained in:
Tom Limoncelli
2022-04-24 09:08:40 -04:00
committed by GitHub
parent e2536ad406
commit 41d994bab6
2 changed files with 9 additions and 17 deletions

View File

@ -330,7 +330,8 @@ func TestDualProviders(t *testing.T) {
run()
// add bogus nameservers
dc.Records = []*models.RecordConfig{}
dc.Nameservers = append(dc.Nameservers, models.StringsToNameservers([]string{"ns1.example.com", "ns2.example.com"})...)
nslist, _ := models.ToNameservers([]string{"ns1.example.com", "ns2.example.com"})
dc.Nameservers = append(dc.Nameservers, nslist...)
nameservers.AddNSRecords(dc)
t.Log("Adding nameservers from another provider")
run()