summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_definitions.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rabbit_definitions.erl b/src/rabbit_definitions.erl
index 4f90861fdf..e9121580b9 100644
--- a/src/rabbit_definitions.erl
+++ b/src/rabbit_definitions.erl
@@ -656,7 +656,7 @@ exchange_definition(#exchange{name = #resource{virtual_host = VHost, name = Name
<<"type">> => Type,
<<"durable">> => Durable,
<<"auto_delete">> => AD,
- <<"arguments">> => Args}.
+ <<"arguments">> => rabbit_misc:amqp_table(Args)}.
list_queues() ->
%% exclude exclusive queues, they cannot be restored
@@ -679,7 +679,7 @@ queue_definition(Q) ->
<<"type">> => Type,
<<"durable">> => amqqueue:is_durable(Q),
<<"auto_delete">> => amqqueue:is_auto_delete(Q),
- <<"arguments">> => maps:from_list(Arguments)
+ <<"arguments">> => rabbit_misc:amqp_table(Arguments)
}.
list_bindings() ->
@@ -696,7 +696,7 @@ binding_definition(#binding{source = S,
<<"destination">> => D#resource.name,
<<"destination_type">> => D#resource.kind,
<<"routing_key">> => RoutingKey,
- <<"arguments">> => maps:from_list(Arguments)
+ <<"arguments">> => rabbit_misc:amqp_table(Arguments)
}.
list_vhosts() ->
@@ -727,7 +727,7 @@ runtime_parameter_definition(Param) ->
<<"vhost">> => pget(vhost, Param),
<<"component">> => pget(component, Param),
<<"name">> => pget(name, Param),
- <<"value">> => pget(value, Param)
+ <<"value">> => maps:from_list(pget(value, Param))
}.
list_global_runtime_parameters() ->