fix(lwm2m): fix querying lwm2m client list on the another node

This commit is contained in:
JianBo He 2022-02-15 11:23:44 +08:00
parent e1592c41d0
commit 425546864d
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@
]).
list(#{node := Node }, Params) ->
case Node = node() of
case Node =:= node() of
true -> list(#{}, Params);
_ -> rpc_call(Node, list, [#{}, Params])
end;
@ -61,7 +61,7 @@ list(#{}, _Params) ->
return({ok, format(Channels)}).
lookup_cmd(#{ep := Ep, node := Node}, Params) ->
case Node = node() of
case Node =:= node() of
true -> lookup_cmd(#{ep => Ep}, Params);
_ -> rpc_call(Node, lookup_cmd, [#{ep => Ep}, Params])
end;