Merge lp:~gnuoy/charms/trusty/rabbitmq-server/vhost-fix into lp:~openstack-charmers-archive/charms/trusty/rabbitmq-server/next
| Status: | Rejected |
|---|---|
| Rejected by: | Billy Olsen on 2015-03-03 |
| Proposed branch: | lp:~gnuoy/charms/trusty/rabbitmq-server/vhost-fix |
| Merge into: | lp:~openstack-charmers-archive/charms/trusty/rabbitmq-server/next |
| Diff against target: |
15 lines (+2/-3) 1 file modified
hooks/rabbit_utils.py (+2/-3) |
| To merge this branch: | bzr merge lp:~gnuoy/charms/trusty/rabbitmq-server/vhost-fix |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| OpenStack Charmers | 2015-03-03 | Pending | |
|
Review via email:
|
|||
Description of the Change
The output of rabbitmqctl list_vhosts has changed in the new version (~ 3.4) so that it no longer ends with '...done.' which breaks the current logic of throwing away the last element in the list returned by subprocess.
This mp switches to using '-q' to suppress 'Listing vhosts ...' and '...done.' from the output.
It also stops throwing away '/' from the vhost list since '/' is a valid vhost.
| Billy Olsen (billy-olsen) wrote : | # |
charm_lint_check #2399 rabbitmq-
LINT FAIL: lint-test failed
LINT Results (max last 2 lines):
unit_
make: *** [lint] Error 1
Full lint test output: http://
Build: http://
charm_unit_test #2189 rabbitmq-
UNIT OK: passed
charm_amulet_test #2319 rabbitmq-
AMULET FAIL: amulet-test failed
AMULET Results (max last 2 lines):
ERROR subprocess encountered error code 1
make: *** [functional_test] Error 1
Full amulet test output: http://
Build: http://
Unmerged revisions
- 83. By Liam Young on 2015-03-03
-
Stop throwing away first and last vhosts

Liam,
This looks mostly fine, but was superceded by JuanJo's MP - lp:~jjo/charms/trusty/rabbitmq-server/use-rabbitmqctl-q-for-list-cmds, which also handled the user listing info. So marking this as disapprove and you can use his.
Billy