diff options
| author | Ayanda Dube <ayanda.dube@erlang-solutions.com> | 2015-10-16 01:59:04 +0100 |
|---|---|---|
| committer | Ayanda Dube <ayanda.dube@erlang-solutions.com> | 2015-10-16 01:59:04 +0100 |
| commit | 06c3d2b0484fe9695aaac66edc2830c91041c507 (patch) | |
| tree | 556d80ddb1c9bb69cf73d6fb413497c00e7a3e03 | |
| parent | a6ceef958599f1c539f92da7bda7f96cb54a8ca4 (diff) | |
| download | rabbitmq-server-git-06c3d2b0484fe9695aaac66edc2830c91041c507.tar.gz | |
Update to use list_formatted/1 for ordered display of policies.
References #62
| -rw-r--r-- | src/rabbit_policy.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rabbit_policy.erl b/src/rabbit_policy.erl index bb6bfea178..5c2fd7907f 100644 --- a/src/rabbit_policy.erl +++ b/src/rabbit_policy.erl @@ -171,9 +171,8 @@ list_formatted(VHost) -> order_policies(list0(VHost, fun format/1)). list_formatted(VHost, Ref, AggregatorPid) -> - rabbit_control_main:emitting_map( - AggregatorPid, Ref, fun(P) -> p(P, fun format/1) end, - rabbit_runtime_parameters:list(VHost, <<"policy">>)). + rabbit_control_main:emitting_map(AggregatorPid, Ref, + fun(P) -> P end, list_formatted(VHost)). list0(VHost, DefnFun) -> [p(P, DefnFun) || P <- rabbit_runtime_parameters:list(VHost, <<"policy">>)]. |
