From 220d0c3c14ae83e0a6541353cda118d3ff7e2764 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Thu, 4 Feb 2016 16:53:01 -0800 Subject: [PATCH] etcd-agent: fix data-dir path check Need one more dash to match 'data-dir' flag. --- tools/functional-tester/etcd-agent/agent.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/functional-tester/etcd-agent/agent.go b/tools/functional-tester/etcd-agent/agent.go index f3638e601..b0969fa0c 100644 --- a/tools/functional-tester/etcd-agent/agent.go +++ b/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 }