Moving TransferParse from file to its own package (#1286)

* Moving TransferParse from file to its own package

* Adding tests for parse
This commit is contained in:
Brad Beam
2017-12-13 10:18:08 -06:00
committed by John Belamaric
parent a469a17cdf
commit 556a289d9a
5 changed files with 145 additions and 44 deletions

View File

@@ -5,6 +5,7 @@ import (
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/file"
"github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/coredns/coredns/plugin/pkg/parse"
"github.com/coredns/coredns/plugin/proxy"
"github.com/mholt/caddy"
@@ -74,7 +75,7 @@ func secondaryParse(c *caddy.Controller) (file.Zones, error) {
switch c.Val() {
case "transfer":
t, f, e = file.TransferParse(c, true)
t, f, e = parse.Transfer(c, true)
if e != nil {
return file.Zones{}, e
}