Sfoglia il codice sorgente

fix: node parameters

DDDHuang 4 anni fa
parent
commit
f184cd3d0e
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      apps/emqx_management/src/emqx_mgmt_api_clients.erl

+ 2 - 1
apps/emqx_management/src/emqx_mgmt_api_clients.erl

@@ -505,7 +505,8 @@ list(Params) ->
             {200, Response};
         Node1 ->
             Node = binary_to_atom(Node1, utf8),
-            Response = emqx_mgmt_api:node_query(Node, Params, ?CLIENT_QS_SCHEMA, ?query_fun),
+            ParamsWithoutNode = maps:without([<<"node">>], Params),
+            Response = emqx_mgmt_api:node_query(Node, ParamsWithoutNode, ?CLIENT_QS_SCHEMA, ?query_fun),
             {200, Response}
     end.