From 1a5414b6d25ed1b1abdafd8594183b84af33a6fb Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Tue, 30 Dec 2014 17:03:46 +1100 Subject: [PATCH] ctdb-scripts: iSCSI eventscript should fail when PNN can't be determined Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/config/events.d/70.iscsi | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ctdb/config/events.d/70.iscsi b/ctdb/config/events.d/70.iscsi index 06a8f07957e..7d00494d51c 100755 --- a/ctdb/config/events.d/70.iscsi +++ b/ctdb/config/events.d/70.iscsi @@ -47,10 +47,7 @@ EOF killall -9 tgtd >/dev/null 2>/dev/null this_node=$(ctdb xpnn | sed -e 's@PNN:@@') - if [ -z "$this_node" ] ; then - echo "Failed to get node pnn" - exit 0 - fi + [ -n "$this_node" ] || die "Failed to get node pnn" # start the iscsi daemon tgtd >/dev/null 2>/dev/null -- 2.11.4.GIT