diff options
author | Tristan Sloughter <[email protected]> | 2015-01-28 10:58:16 -0600 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2015-01-28 11:01:08 -0600 |
commit | ba9ffe936f5582baa3095d7911bae0fcbe0c22cc (patch) | |
tree | eeda459b5b0be2652585fa3a253051e316c55475 | |
parent | 941444eaf25f25b22c844e2d462838de1b3469ad (diff) | |
download | relx-ba9ffe936f5582baa3095d7911bae0fcbe0c22cc.tar.gz relx-ba9ffe936f5582baa3095d7911bae0fcbe0c22cc.tar.bz2 relx-ba9ffe936f5582baa3095d7911bae0fcbe0c22cc.zip |
support rpcterms with no args or argstring in nodetool
-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); |