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

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