diff --git a/ctdb/tests/simple/18_ctdb_reloadips.sh b/ctdb/tests/simple/18_ctdb_reloadips.sh index e7b4e4d84a9..4822b935684 100755 --- a/ctdb/tests/simple/18_ctdb_reloadips.sh +++ b/ctdb/tests/simple/18_ctdb_reloadips.sh @@ -83,24 +83,23 @@ try_command_on_node any $CTDB sync select_test_node_and_ips -first_ip=${test_node_ips%% *} -echo "Removing IP $first_ip from node $test_node" +echo "Removing IP $test_ip from node $test_node" -try_command_on_node $test_node "mv $addresses $backup && grep -v '^${first_ip}/' $backup >$addresses" +try_command_on_node $test_node "mv $addresses $backup && grep -v '^${test_ip}/' $backup >$addresses" try_command_on_node any $CTDB reloadips -n all try_command_on_node $test_node $CTDB ip -if grep "^${first_ip} " <<<"$out" ; then +if grep "^${test_ip} " <<<"$out" ; then cat <