X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Famqp.c;h=c54a1e09036dd289a7ba07819eced763c3edf971;hb=cd401b9728839f8b24fd16fac9e9c1753526fd4e;hp=cd07023f4e762cf4c5945c902ebb4cec76ce02a5;hpb=2e632b0929fb957fd686231658bc2999fdfb4b20;p=collectd.git diff --git a/src/amqp.c b/src/amqp.c index cd07023f..c54a1e09 100644 --- a/src/amqp.c +++ b/src/amqp.c @@ -901,7 +901,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);