Explorar el Código

functional/agent: fix etcd exec path check

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee hace 7 años
padre
commit
f63b5c15c7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      functional/agent/handler.go

+ 1 - 1
functional/agent/handler.go

@@ -96,7 +96,7 @@ func (srv *Server) createEtcdLogFile() error {
 }
 
 func (srv *Server) creatEtcd(fromSnapshot bool) error {
-	if !fileutil.Exist(srv.Member.EtcdExec) || srv.Member.EtcdExec != "embed" {
+	if !fileutil.Exist(srv.Member.EtcdExec) && srv.Member.EtcdExec != "embed" {
 		return fmt.Errorf("unknown etcd exec %q or path does not exist", srv.Member.EtcdExec)
 	}