Code

amqp plugin: Enable the "ExchangeType" for publishers, too.
authorFlorian Forster <octo@collectd.org>
Wed, 17 May 2017 06:01:29 +0000 (08:01 +0200)
committerFlorian Forster <octo@collectd.org>
Wed, 17 May 2017 06:01:29 +0000 (08:01 +0200)
Fixes: #2286
src/amqp.c

index a9d91a7d14588c777a62d3558883372a5ea6f933..9578e61a5bd58c6c5365dea767be421b73cf6115 100644 (file)
@@ -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);