Blame SOURCES/bz2015789-gcp-ilb-1-fix-log_enable.patch

4ee0dc
From 9a7b47f1838e9d6e3c807e9db5312097adb5c499 Mon Sep 17 00:00:00 2001
4ee0dc
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
4ee0dc
Date: Fri, 5 Nov 2021 10:30:49 +0100
4ee0dc
Subject: [PATCH] gcp-ilb/Squid: fix issues detected by CI
4ee0dc
4ee0dc
---
4ee0dc
 heartbeat/Squid.in | 2 +-
4ee0dc
 heartbeat/gcp-ilb  | 4 ++--
4ee0dc
 2 files changed, 3 insertions(+), 3 deletions(-)
4ee0dc
4ee0dc
diff --git a/heartbeat/gcp-ilb b/heartbeat/gcp-ilb
4ee0dc
index 28484b241..48dc3ac4e 100755
4ee0dc
--- a/heartbeat/gcp-ilb
4ee0dc
+++ b/heartbeat/gcp-ilb
4ee0dc
@@ -53,12 +53,12 @@ pidfile="/var/run/$OCF_RESOURCE_INSTANCE.pid"
4ee0dc
 
4ee0dc
 
4ee0dc
 #Validate command for logging
4ee0dc
-if $OCF_RESKEY_log_enable = "true"; then
4ee0dc
+if [ $OCF_RESKEY_log_enable = "true" ]; then
4ee0dc
     if  type $OCF_RESKEY_log_cmd > /dev/null 2>&1; then
4ee0dc
 	logging_cmd="$OCF_RESKEY_log_cmd $OCF_RESKEY_log_params"
4ee0dc
 	ocf_log debug "Logging command is: \'$logging_cmd\' "
4ee0dc
     else 
4ee0dc
-	$OCF_RESKEY_log_enable = "false"
4ee0dc
+	OCF_RESKEY_log_enable="false"
4ee0dc
 	ocf_log err "\'$logging_cmd\' is invalid. External logging disabled."
4ee0dc
 		
4ee0dc
     fi;