mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
tests: Check assigned IPs from ctdb output
This fixes the test ctdb_config_add_ip when running against local daemons. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit b81c2c8a2360001fe73f9fd9aa1ba32665fdb0bb)
This commit is contained in:
parent
db13fd893c
commit
f2a5fda861
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user