Browse Source

Merge pull request #4426 from gyuho/f0

etcd-agent: fix data-dir path check
Gyu-Ho Lee 10 years ago
parent
commit
f003e421f5
1 changed files with 2 additions and 2 deletions
  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
 		}