X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Famqp.c;h=c54a1e09036dd289a7ba07819eced763c3edf971;hb=4fdd7193481b638a059d6fa047542312e41ea45e;hp=cd07023f4e762cf4c5945c902ebb4cec76ce02a5;hpb=f7e2d82c4d016df72c55e85bb9c5bc9ba08d5f91;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);