diff --git a/physical/etcd.go b/physical/etcd.go index fa1398617d..7b3133e02c 100644 --- a/physical/etcd.go +++ b/physical/etcd.go @@ -81,6 +81,8 @@ func newEtcdBackend(conf map[string]string) (Backend, error) { } machinesParsed := strings.Split(machines, EtcdMachineDelimiter) + // Create a new client from the supplied address and attempt to sync with the + // cluster. var client *etcd.Client cert, has_cert := conf["tls_cert_file"] key, has_key := conf["tls_key_file"] @@ -92,8 +94,6 @@ func newEtcdBackend(conf map[string]string) (Backend, error) { return nil, err } } else { - // Create a new client from the supplied addres and attempt to sync with the - // cluster. client = etcd.NewClient(machinesParsed) } if !client.SyncCluster() {