From 79c3ef8d5eb79d13bd2c72c7b3cc21526770ffd6 Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Sun, 19 Feb 2017 21:04:37 +0100 Subject: Pass the keyvalues to the New functions --- conf/parser.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'conf') diff --git a/conf/parser.go b/conf/parser.go index b1b4447..4a51c6f 100644 --- a/conf/parser.go +++ b/conf/parser.go @@ -80,7 +80,7 @@ func (p *parser) parse() *manager.Manager { if !ok { fmt.Fprintf(os.Stderr, "filter module is not known: %q\n", fdesc.name) } - filt = filternewfunc(nil) + filt = filternewfunc(fdesc.keyvalues) } outputmdescs := p.mainmodule("output") @@ -90,7 +90,7 @@ func (p *parser) parse() *manager.Manager { if !ok { fmt.Fprintf(os.Stderr, "output module is not known: %q\n", odesc.name) } - out = outputnewfunc(nil) + out = outputnewfunc(odesc.keyvalues) } return &manager.Manager{Input: in, Filter: filt, Output: out} -- cgit v1.2.3