amqp-utils icon indicating copy to clipboard operation
amqp-utils copied to clipboard

amqp-exchange does not allow creating custom exchanges

Open clarete opened this issue 11 years ago • 1 comments

Hi, thanks a lot for the project, amqp-utils is a really helpful tool for managing AMQP servers!

Today I faced the following problem: I'm using a few custom exchange types, like [0]. I don't want my clients to be able even create the exchange from their side, I wanna do that during the deployment of the rabbitmq server, using amqp-utils. However, the amqp-exchange program doesn't allow me to inform perfectly valid values like x-presence.

Here's the place the value gets filtered: https://github.com/dougbarth/amqp-utils/blob/master/bin/amqp-exchange#L23

Do you think it would be possible to remove this validation, allow the user to send the command to the server and then check the server response for erros?

Again, thanks a lot!

[0] https://github.com/tonyg/presence-exchange

clarete avatar Sep 30 '14 16:09 clarete

Hi,

Yeah, definitely. Do you mind coding up that change and sending along a PR?

dougbarth avatar Sep 30 '14 16:09 dougbarth