1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

ctdb-scripts: Rename variable: fail -> down_interfaces_found

Now its name describes its usage and the code reads better.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2016-01-15 21:22:16 +11:00 committed by Amitay Isaacs
parent d0f2143fe8
commit 06901f4aeb

View File

@ -44,7 +44,7 @@ monitor_interfaces()
{
get_all_interfaces
fail=false
down_interfaces_found=false
up_interfaces_found=false
# Note that this loop must not exit early. It must process
@ -55,12 +55,12 @@ monitor_interfaces()
up_interfaces_found=true
ctdb setifacelink "$_iface" up >/dev/null 2>&1
else
fail=true
down_interfaces_found=true
ctdb setifacelink "$_iface" down >/dev/null 2>&1
fi
done
if ! $fail ; then
if ! $down_interfaces_found ; then
return 0
fi