Browse Source

functional/agent: fix etcd exec path check

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 years ago
parent
commit
f63b5c15c7
1 changed files with 1 additions and 1 deletions
  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)
 	}