functional/agent: fix etcd exec path check

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee 2018-04-16 16:14:14 -07:00
parent 2ee2a96055
commit f63b5c15c7

View File

@ -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)
}