src/filter_chain.c: Add `Target' blocks to `Chain' blocks.
[collectd.git] / src / filter_chain.c
index 9a15661..5784426 100644 (file)
@@ -497,6 +497,8 @@ static int fc_config_add_chain (const oconfig_item_t *ci) /* {{{ */
 
     if (strcasecmp ("Rule", option->key) == 0)
       status = fc_config_add_rule (chain, option);
+    else if (strcasecmp ("Target", option->key) == 0)
+      status = fc_config_add_target (&chain->targets, option);
     else
     {
       WARNING ("Filter subsystem: Chain %s: Option `%s' not allowed "