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 a9d91a7..9578e61 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);