fix: crash when listing non bridge_v1 compatible bridge_v2
Fixes: https://emqx.atlassian.net/browse/EMQX-11271
This commit is contained in:
parent
19554850a9
commit
8fb426e57f
|
@ -233,9 +233,13 @@ list_with_lookup_fun(LookupFun) ->
|
||||||
fun(Name, _RawConf, Acc) ->
|
fun(Name, _RawConf, Acc) ->
|
||||||
[
|
[
|
||||||
begin
|
begin
|
||||||
{ok, BridgeInfo} =
|
case LookupFun(Type, Name) of
|
||||||
LookupFun(Type, Name),
|
{ok, BridgeInfo} ->
|
||||||
BridgeInfo
|
BridgeInfo;
|
||||||
|
{error, not_bridge_v1_compatible} = Err ->
|
||||||
|
%% Filtered out by the caller
|
||||||
|
Err
|
||||||
|
end
|
||||||
end
|
end
|
||||||
| Acc
|
| Acc
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue