Export user tags as a list

instead of a comma-separated list in a string.

When importing, both formats are now supported (as of
the previous commit).

Closes #2667.
This commit is contained in:
Michael Klishin 2020-12-09 11:17:55 +03:00
parent e4c37db689
commit bcf6ac0515
No known key found for this signature in database
GPG Key ID: E80EDCFA0CDB21EE
1 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@
-export([decode/1, decode/2, args/1]).
-import(rabbit_misc, [pget/2]).
-import(rabbit_data_coercion, [to_binary/1]).
%%
%% API
@ -765,4 +766,4 @@ topic_permission_definition(P0) ->
maps:from_list(P).
tags_as_binaries(Tags) ->
list_to_binary(string:join([atom_to_list(T) || T <- Tags], ",")).
[to_binary(T) || T <- Tags].