Explorar el Código

etcd-agent: fix data-dir path check

Need one more dash to match 'data-dir' flag.
Gyu-Ho Lee hace 10 años
padre
commit
220d0c3c14
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      tools/functional-tester/etcd-agent/agent.go

+ 2 - 2
tools/functional-tester/etcd-agent/agent.go

@@ -150,9 +150,9 @@ func (a *Agent) status() client.Status {
 func (a *Agent) dataDir() string {
 	datadir := path.Join(a.cmd.Path, "*.etcd")
 	args := a.cmd.Args
-	// only parse the simple case like "-data-dir /var/lib/etcd"
+	// only parse the simple case like "--data-dir /var/lib/etcd"
 	for i, arg := range args {
-		if arg == "-data-dir" {
+		if arg == "--data-dir" {
 			datadir = args[i+1]
 			break
 		}