Просмотр исходного кода

fix: ensure /listeners API return all node's status

Zhongwen Deng 3 лет назад
Родитель
Сommit
f080715ce9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apps/emqx_management/src/emqx_mgmt_api_listeners.erl

+ 1 - 1
apps/emqx_management/src/emqx_mgmt_api_listeners.erl

@@ -549,7 +549,7 @@ format_status(Key, Node, Listener, Acc) ->
             NodeStatus =
                 case maps:find(Node, NodeStatus0) of
                     error ->
-                        #{
+                        NodeStatus0#{
                             Node => #{
                                 max_connections => MaxConnections,
                                 current_connections => CurrentConnections