From: Yves Mettier Date: Thu, 12 Nov 2015 10:31:38 +0000 (+0000) Subject: restores support for TypeInstance in ts_create() X-Git-Tag: collectd-5.6.0~359^2~1^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a89fc9296186de14cc308e18adae56c7777bae0e;p=collectd.git restores support for TypeInstance in ts_create() --- diff --git a/src/target_set.c b/src/target_set.c index 5e9d0877..da2d3075 100644 --- a/src/target_set.c +++ b/src/target_set.c @@ -177,6 +177,9 @@ static int ts_create (const oconfig_item_t *ci, void **user_data) /* {{{ */ status = ts_config_add_string (&data->type, child, /* may be empty = */ 0); #endif + 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) status = ts_config_add_meta (&data->meta, child, /* may be empty = */ 1);