resource-agents/RHEL-76007-Filesystem-dont-report-warnings-when-creating-resource.patch

24 lines
781 B
Diff
Raw Normal View History

From 2ba4b0c05902da4520a8931b9417b74c5659b5d1 Mon Sep 17 00:00:00 2001
From: Satomi OSAWA <satomi.t.osawa@gmail.com>
Date: Thu, 23 Jan 2025 10:55:28 +0900
Subject: [PATCH] To avoid the Warning when executing the pcs resource create
command, the INFO log message in validate-all operation will be suppressed.
---
heartbeat/Filesystem | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/heartbeat/Filesystem b/heartbeat/Filesystem
index b48bee142..0c43220df 100755
--- a/heartbeat/Filesystem
+++ b/heartbeat/Filesystem
@@ -1145,7 +1145,7 @@ check_binary $FSCK
check_binary $MOUNT
check_binary $UMOUNT
-if [ "$OP" != "monitor" ]; then
+if [ "$OP" != "monitor" ] && [ "$OP" != "validate-all" ]; then
ocf_log info "Running $OP for $DEVICE on $MOUNTPOINT"
fi