summaryrefslogtreecommitdiffstats
path: root/ctdb
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb')
-rwxr-xr-xctdb/tests/simple/16_ctdb_config_add_ip.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/ctdb/tests/simple/16_ctdb_config_add_ip.sh b/ctdb/tests/simple/16_ctdb_config_add_ip.sh
index 3207661f16..3c23ac1d9d 100755
--- a/ctdb/tests/simple/16_ctdb_config_add_ip.sh
+++ b/ctdb/tests/simple/16_ctdb_config_add_ip.sh
@@ -92,13 +92,13 @@ for i in $test_node_ips ; do
# Get the interface details for $i, which our address is a
# close relative of. This should never fail but it can't hurt
# to be careful...
- for k in $all_test_node_ips ; do
- if [ "$i" = "${k%/*}" ] ; then
- # Found one!
- add_ip="${try}/${k#*/}"
+ try_command_on_node $test_node "ctdb ip -v -Y"
+ while IFS=":" read x ip pnn iface x ; do
+ if [ "$i" = "$ip" ]; then
+ add_ip="$try/32:$iface"
break 3
fi
- done
+ done <<<"$out"
done
done