From 5717cb3228bc28e73b685ca8c6ac5e21ca74027a Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 17 May 2017 08:01:29 +0200 Subject: [PATCH] amqp plugin: Enable the "ExchangeType" for publishers, too. Fixes: #2286 --- src/amqp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2