Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong string replacement #17

Open
ogmueller opened this issue Sep 20, 2013 · 1 comment
Open

Wrong string replacement #17

ogmueller opened this issue Sep 20, 2013 · 1 comment

Comments

@ogmueller
Copy link

Most of the scripts are doing a "grep -v 'done.$' | sed -e 's/[.=-]/_/g' )" for the config, which will replace a queue name like "abc-def" into "abc_def". The problem with this is, that the same string replacement has to be done with the rabbitmqctl output, because otherwise the values cannot be related to the config data. So in case of the consumer script the last line has to be something like:
HOME=$HOME rabbitmqctl list_queues -p $VHOST name consumers| grep -v "^Listing" | grep -v "done.$" | grep -v "..." | sed -e 's/[.=-]/ _/g' | sed "s/[\t]/.value /g"

This issue is in more or less all scripts.

@sp00x
Copy link

sp00x commented Feb 18, 2015

Indeed, had the same issue here now, and had to monkey patch. I guess there isn't any much activity on this project, judging by the commit history...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants