rabbitmq / rabbitmq-management

RabbitMQ Management UI and HTTP API
https://www.rabbitmq.com/management.html
Other
372 stars 165 forks source link

Fix export using python 3 #802

Closed lukebakken closed 4 years ago

lukebakken commented 4 years ago

Without .encode() you get this error:

TypeError: a bytes-like object is required, not str

Also use with when appropriate

michaelklishin commented 4 years ago

Backported to v3.8.x.

gogolok commented 4 years ago

@michaelklishin Any chance this gets backported/cherry-picked to v3.7.x ?

michaelklishin commented 4 years ago

We can cherry pick but there may or may not be more 3.7 releases. Please use rabbitmqadmin from v3.8.x or master.

michaelklishin commented 4 years ago

Backported to v3.7.x if it makes anything easier. rabbitmqadmin in v3.7.x is now only different from v3.8.x in one small usability feature that is related to queue types (which do not exist in 3.7).

gogolok commented 4 years ago

Thanks @michaelklishin !