1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

ctdb-tests: Default PNN is 0

This is called in a couple of places without an argument, so give it a
default.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Martin Schwenke 2023-06-30 12:24:30 +10:00 committed by Volker Lendecke
parent ed3f041c30
commit 5a4209b713

View File

@ -312,7 +312,7 @@ EOF
# PNN can already be cached in the state directory.
ctdb_set_pnn()
{
export FAKE_CTDB_PNN="$1"
export FAKE_CTDB_PNN="${1:-0}"
echo "Setting up PNN ${FAKE_CTDB_PNN}"
CTDB_SCRIPT_VARDIR="${CTDB_TEST_TMP_DIR}/scripts/${FAKE_CTDB_PNN}"