This was writing garbage into the IP layout file and relevant tests
were passing by luck.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
while read _i _pnn ; do
if [ "$_ip" = "$_i" ] ; then
- echo "$_ip $_target"
+ echo "$_i $_target"
else
- echo "$_ip $_pnn"
+ echo "$_i $_pnn"
fi
done | sort >"$_t"
mv "$_t" "$FAKE_CTDB_IP_LAYOUT"
pnn|xpnn) ctdb_pnn ;;
enable) ctdb_enable "$@";;
disable) ctdb_disable "$@";;
- moveip) ctdb_moveip "$@";;
+ moveip) shift ; ctdb_moveip "$@";;
shutdown) ctdb_shutdown "$@";;
setvar) ctdb_setvar "$@" ;;
nodestatus) ctdb_nodestatus "$@" ;;