Expect that path to files will be provided not raw data

This commit is contained in:
Dmitry Shulyak
2017-06-08 15:11:59 +03:00
parent a59db7c9ec
commit ffd035e82c

View File

@@ -105,15 +105,15 @@ func newCoreDNSProviderInterface(config io.Reader) (*Interface, error) {
etcdEndpoints = cfg.Global.EtcdEndpoints
dnsZones = cfg.Global.DNSZones
certFile = cfg.Global.CertFile
keyFile = cfg.Global.KeyFile
caFile = cfg.Global.CAFile
keyFile = cfg.Global.KeyFile
}
glog.Infof("Using CoreDNS DNS provider")
if dnsZones == "" {
return nil, fmt.Errorf("Need to provide at least one DNS Zone")
}
glog.Infof("Creating etcd transport with %s, %s, %s", certFile, keyFile, caFile)
etcdTransport, err := newTransportForETCD2(certFile, keyFile, caFile)
if err != nil {
return nil, fmt.Errorf("error creating transport for etcd: %v", err)