1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

ctdb-eventscripts: Remove unused argument to natgw_ensure_master()

This was used to limit damage in the "recovered" event.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>

Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Tue Jul 29 10:03:16 CEST 2014 on sn-devel-104
This commit is contained in:
Martin Schwenke 2014-07-28 12:56:47 +10:00 committed by Amitay Isaacs
parent d011e70215
commit 7c2c6748e3

View File

@ -106,8 +106,6 @@ natgw_set_slave ()
natgw_ensure_master ()
{
_event="$1"
set -- $(ctdb natgwlist)
natgwmaster="${1:--1}" # Default is -1 if natgwlist fails
natgwip="$2"
@ -144,7 +142,7 @@ case "$1" in
mypnn=$(ctdb pnn | cut -d: -f2)
natgw_set_capability
natgw_ensure_master "$1"
natgw_ensure_master
natgw_clear