Fix uncommitted messages, newer RabbitMQ 3.1 does not support -p

Signed-off-by: Rohit Yadav <rohit.yadav@wingify.com>
This commit is contained in:
Rohit Yadav 2013-05-23 14:34:39 +05:30
parent 655e8d15f8
commit ce6ac82bf1
1 changed files with 1 additions and 1 deletions

View File

@ -70,4 +70,4 @@ fi
# real work - i.e. display the data. Almost always this will be
# "value" subfield for every data field.
HOME=$HOME rabbitmqctl list_channels -p $VHOST name messages_uncommitted | grep -v "^Listing" | grep -v "done.$" | sed "s/[\t]/.value /g"
HOME=$HOME rabbitmqctl list_channels name vhost messages_uncommitted | grep -v "\.\.\." | grep $VHOST | sed "s/[ ]->.*[\t]/.value /g"