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

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