summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2017-02-19 21:04:37 +0100
committerSilvan Jegen <s.jegen@gmail.com>2017-02-19 21:04:37 +0100
commit79c3ef8d5eb79d13bd2c72c7b3cc21526770ffd6 (patch)
treee2b78c6054207cadbe8231ff83eed3fcf10c970d /conf
parentb1b366ac99c06cedff8f0ffc808649f27fa98c42 (diff)
Pass the keyvalues to the New functions
Diffstat (limited to 'conf')
-rw-r--r--conf/parser.go4
1 files changed, 2 insertions, 2 deletions
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}