Blame SOURCES/bz2064342-3-IPsrcaddr-fix-indentation.patch

4ff291
From 0a197f1cd227e768837dff778a0c56fc1085d434 Mon Sep 17 00:00:00 2001
4ff291
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
4ff291
Date: Mon, 21 Feb 2022 13:54:04 +0100
4ff291
Subject: [PATCH] IPsrcaddr: fix indentation in better error message code
4ff291
4ff291
---
4ff291
 heartbeat/IPsrcaddr | 30 +++++++++++++++---------------
4ff291
 1 file changed, 15 insertions(+), 15 deletions(-)
4ff291
4ff291
diff --git a/heartbeat/IPsrcaddr b/heartbeat/IPsrcaddr
4ff291
index f0216722d..c82adc0e9 100755
4ff291
--- a/heartbeat/IPsrcaddr
4ff291
+++ b/heartbeat/IPsrcaddr
4ff291
@@ -542,27 +542,27 @@ fi
4ff291
 findif_out=`$FINDIF -C`
4ff291
 rc=$?
4ff291
 [ $rc -ne 0 ] && {
4ff291
-    ocf_exit_reason "[$FINDIF -C] failed"
4ff291
-    exit $rc
4ff291
+	ocf_exit_reason "[$FINDIF -C] failed"
4ff291
+	exit $rc
4ff291
 }
4ff291
 
4ff291
 INTERFACE=`echo $findif_out | awk '{print $1}'`
4ff291
 if [ "$OCF_RESKEY_destination" = "0.0.0.0/0" ] ;then
4ff291
 	NETWORK=`$IP2UTIL route list dev $INTERFACE scope link $PROTO match $ipaddress|grep -m 1 -o '^[^ ]*'`
4ff291
 
4ff291
-    if [ -z "$NETWORK" ]; then
4ff291
-        err_str="command '$IP2UTIL route list dev $INTERFACE scope link $PROTO"
4ff291
-        err_str="$err_str match $ipaddress' failed to find a matching route"
4ff291
-
4ff291
-        if [ "$__OCF_ACTION" = "start" ]; then
4ff291
-            ocf_exit_reason "$err_str"
4ff291
-            exit $OCF_ERR_ARGS
4ff291
-        elif ! ocf_is_probe; then
4ff291
-            ocf_log warn "$err_str"
4ff291
-        else
4ff291
-            ocf_log debug "$err_str"
4ff291
-        fi
4ff291
-    fi
4ff291
+	if [ -z "$NETWORK" ]; then
4ff291
+		err_str="command '$IP2UTIL route list dev $INTERFACE scope link $PROTO"
4ff291
+		err_str="$err_str match $ipaddress' failed to find a matching route"
4ff291
+
4ff291
+		if [ "$__OCF_ACTION" = "start" ]; then
4ff291
+			ocf_exit_reason "$err_str"
4ff291
+			exit $OCF_ERR_ARGS
4ff291
+		elif ! ocf_is_probe; then
4ff291
+			ocf_log warn "$err_str"
4ff291
+		else
4ff291
+			ocf_log debug "$err_str"
4ff291
+		fi
4ff291
+	fi
4ff291
 else
4ff291
 	NETWORK="$OCF_RESKEY_destination"
4ff291
 fi