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

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