Remove absolute path to pilosactl

This commit is contained in:
Alan Bernstein 2017-01-11 13:46:32 -06:00
parent a680fc7b1a
commit 289093de7f

View file

@ -1564,7 +1564,7 @@ func (cmd *BspawnCommand) spawnRemote(ctx context.Context) (map[string]interface
resLock.Unlock()
}(stdout, sp.Name, i)
sess.Stderr = cmd.Stderr
err = sess.Start("PATH=.:$PATH /usr/local/bin/pilosactl bagent -agent-num=" + strconv.Itoa(i) + " -hosts=" + strings.Join(cmd.PilosaHosts, ",") + " " + strings.Join(sp.Args, " "))
err = sess.Start("PATH=.:$PATH pilosactl bagent -agent-num=" + strconv.Itoa(i) + " -hosts=" + strings.Join(cmd.PilosaHosts, ",") + " " + strings.Join(sp.Args, " "))
if err != nil {
return nil, err
}