Skip to content

Commit f6c8380

Browse files
rabbit_vhost: handle imported tags that are atom lists
1 parent dfa8e92 commit f6c8380

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

deps/rabbit/src/rabbit_vhost.erl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ parse_tags(Val) when is_list(Val) ->
130130
Bin when is_binary(Bin) ->
131131
%% this is a list of binaries
132132
[trim_tag(Tag) || Tag <- Val];
133+
Atom when is_atom(Atom) ->
134+
%% this is a list of atoms
135+
[trim_tag(Tag) || Tag <- Val];
133136
Int when is_integer(Int) ->
134137
%% this is a string/charlist
135138
[trim_tag(Tag) || Tag <- re:split(Val, ",", [{return, list}])]

0 commit comments

Comments
 (0)