mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
functional/agent: fix etcd exec path check
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
2ee2a96055
commit
f63b5c15c7
@ -96,7 +96,7 @@ func (srv *Server) createEtcdLogFile() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (srv *Server) creatEtcd(fromSnapshot bool) 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)
|
return fmt.Errorf("unknown etcd exec %q or path does not exist", srv.Member.EtcdExec)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user