Support exec input plugin legacy behavior

This commit is contained in:
Cameron Sparr
2016-02-10 11:50:05 -07:00
parent ef20f05221
commit 28664fedb2
3 changed files with 8 additions and 5 deletions

View File

@@ -92,7 +92,7 @@ func TestConfig_LoadDirectory(t *testing.T) {
"Testdata did not produce correct memcached metadata.")
ex := inputs.Inputs["exec"]().(*exec.Exec)
p, err := parsers.NewInfluxParser()
p, err := parsers.NewJSONParser("exec", nil, nil)
assert.NoError(t, err)
ex.SetParser(p)
ex.Command = "/usr/bin/myothercollector --foo=bar"