diff options
| -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">>)]. |
