Support passive queue declaration in amqp_consumer#5831
Conversation
|
So this works for passive queues but it still requires an exchange name to be specified. If I don't and the AMQP creds don't have permission to create an exchange you will get this message `2019-05-16T17:57:48Z E! [agent] Service for input inputs.amqp_consumer failed to start: error declaring exchange: Exception (403) Reason: "ACCESS_REFUSED - operation not permitted on the default exchange" 2019-05-16T17:57:48Z E! [telegraf] Error running agent: error declaring exchange: Exception (403) Reason: "ACCESS_REFUSED - operation not permitted on the default exchange"` |
|
I've updated the plugin to skip exchange declaration when it is set to "", as otherwise it seems to be impossible to use the default exchange and anyway it really should be optional. Similar for bindings, they are now only created when set to a non empty string. |
Required for all PRs: