From: Florian Forster Date: Wed, 17 May 2017 06:01:29 +0000 (+0200) Subject: amqp plugin: Enable the "ExchangeType" for publishers, too. X-Git-Tag: collectd-5.7.2~2^2~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=5717cb3228bc28e73b685ca8c6ac5e21ca74027a;p=collectd.git amqp plugin: Enable the "ExchangeType" for publishers, too. Fixes: #2286 --- diff --git a/src/amqp.c b/src/amqp.c index a9d91a7d..9578e61a 100644 --- a/src/amqp.c +++ b/src/amqp.c @@ -905,7 +905,7 @@ static int camqp_config_connection(oconfig_item_t *ci, /* {{{ */ status = cf_util_get_string(child, &conf->password); else if (strcasecmp("Exchange", child->key) == 0) status = cf_util_get_string(child, &conf->exchange); - else if ((strcasecmp("ExchangeType", child->key) == 0) && !publish) + else if (strcasecmp("ExchangeType", child->key) == 0) status = cf_util_get_string(child, &conf->exchange_type); else if ((strcasecmp("Queue", child->key) == 0) && !publish) status = cf_util_get_string(child, &conf->queue);