-
-
Notifications
You must be signed in to change notification settings - Fork 500
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
Corrections for rabbitmq-server 3.4.0-1 #247
Conversation
It seems that there are some retrocompatibily issues though.. :( |
The evil thing is that this affects all new Ubuntu-12 and Ubuntu-14 deployed server when you do not pin the rabbitmq-server package. :-( |
Where? Which ones? Thanks. |
ii rabbitmq-server 3.3.5-1
ii rabbitmq-server 3.4.0-1
|
Two more questions:
for line in output.split():
if line == 'Listing vhosts ...' or line == '...done.':
continue
else:
# match the line This way, unwanted lines are skipped. |
I just commited a version I tested sucessfully on 3.3.5-1 and 3.4.0-1. Kinda dirty though.. :) |
thanks a lot for that :) |
def exists?
out = rabbitmqctl('list_vhosts').split(/\n/)[0..-1].detect do |line|
if line == 'Listing vhosts ...' or line == '... done.'
continue
end
line.match(/^#{Regexp.escape(resource[:name])}$/)
end
end But as I've said previously, it does little sense given the regexp. Also, brear in mind, once these texts change, it will be back to square one again. |
Could I suggest to use "-q" option to make rabbitmqctl less verbose and not depend on future cosmetical evolution...
Before :
After :
With that option,
should be
Cheers, |
Thanks, great idea @Vincent-- I managed to get it working in both version using this option. |
Thank you for doing that ! I think this is the robust way to do that... |
The same solution was implemented in #251, which we already merged. Thanks! |
I had to make those adjustments to get it working after the upgrade of the RabbitMQ package to version 3.4.0-1 on an Ubuntu 14.04.1 LTS