From de6dd1339b0191713d13484dab95f031374fcc27 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Mon, 5 Sep 2016 21:25:40 +0200 Subject: [PATCH] target_set.c: rename 'MetaDataSet' option Fixes #1910 --- src/collectd.conf.pod | 2 +- src/target_set.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index e302e816..4c0a84c2 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -9384,7 +9384,7 @@ Available options: =item B I -=item B I I +=item B I I Set the appropriate field to the given string. The strings for plugin instance and type instance may be empty, the strings for host and plugin may not be diff --git a/src/target_set.c b/src/target_set.c index fee5ffdc..4f00cbbd 100644 --- a/src/target_set.c +++ b/src/target_set.c @@ -181,7 +181,7 @@ static int ts_create (const oconfig_item_t *ci, void **user_data) /* {{{ */ else if (strcasecmp ("TypeInstance", child->key) == 0) status = ts_config_add_string (&data->type_instance, child, /* may be empty = */ 1); - else if (strcasecmp ("MetaDataSet", child->key) == 0) + else if (strcasecmp ("MetaData", child->key) == 0) status = ts_config_add_meta (&data->meta, child, /* may be empty = */ 1); else @@ -206,8 +206,7 @@ static int ts_create (const oconfig_item_t *ci, void **user_data) /* {{{ */ && (data->meta == NULL)) { ERROR ("Target `set': You need to set at least one of `Host', " - "`Plugin', `PluginInstance', `TypeInstance', " - "`MetaDataSet' or `MetaDataEval'."); + "`Plugin', `PluginInstance', `TypeInstance', `MetaData'."); status = -1; } -- 2.11.0