onnode: unset EXTRA_SSH_OPTS when using fakessh
authorMartin Schwenke <martin@meltin.net>
Fri, 7 Oct 2011 03:59:46 +0000 (14:59 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 18 Oct 2011 00:51:06 +0000 (11:51 +1100)
This case was never tested and fakessh obviously won't handle the
extra arguments.

Signed-off-by: Martin Schwenke <martin@meltin.net>
tools/onnode

index 804ab09cc2d38793022952ea6863e8b8a274d9c5..4bd824315394bac448306abe3a19af3c4173550b 100755 (executable)
@@ -339,6 +339,7 @@ $current && command="cd $PWD && $command"
 ssh_opts=
 if [ -n "$CTDB_NODES_SOCKETS" ] ; then
     SSH=fakessh
+    EXTRA_SSH_OPTS=""
 else 
     # Could "2>/dev/null || true" but want to see errors from typos in file.
     [ -r "${ctdb_base}/onnode.conf" ] && . "${ctdb_base}/onnode.conf"