diff options
author | Jordan Wilberding <[email protected]> | 2015-01-28 10:15:06 -0800 |
---|---|---|
committer | Jordan Wilberding <[email protected]> | 2015-01-28 10:15:06 -0800 |
commit | e6e3b8d74e0c5d0c3eedc74f256ec7749c9309a0 (patch) | |
tree | eeda459b5b0be2652585fa3a253051e316c55475 /priv/templates/nodetool.dtl | |
parent | cb1ca05328cedd457eb4fa73012504d38db45523 (diff) | |
parent | ba9ffe936f5582baa3095d7911bae0fcbe0c22cc (diff) | |
download | relx-e6e3b8d74e0c5d0c3eedc74f256ec7749c9309a0.tar.gz relx-e6e3b8d74e0c5d0c3eedc74f256ec7749c9309a0.tar.bz2 relx-e6e3b8d74e0c5d0c3eedc74f256ec7749c9309a0.zip |
Merge pull request #303 from tsloughter/rpcterms_fix
support rpcterms with no args or argstring in nodetool
Diffstat (limited to 'priv/templates/nodetool.dtl')
-rw-r--r-- | priv/templates/nodetool.dtl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/priv/templates/nodetool.dtl b/priv/templates/nodetool.dtl index 80f1965..dee14b4 100644 --- a/priv/templates/nodetool.dtl +++ b/priv/templates/nodetool.dtl @@ -42,9 +42,9 @@ main(Args) -> _ -> halt(1) end; - ["rpcterms", Module, Function, ArgsAsString] -> + ["rpcterms", Module, Function | ArgsAsString] -> case rpc:call(TargetNode, list_to_atom(Module), list_to_atom(Function), - consult(ArgsAsString), 60000) of + consult(lists:flatten(ArgsAsString)), 60000) of {badrpc, Reason} -> io:format("RPC to ~p failed: ~p\n", [TargetNode, Reason]), halt(1); |