pacemaker/Fix-the-validation-function-of-input.patch
liupei 4c41d61382 fix the validation function of input for HealthCPU
(cherry picked from commit 5053871448cf142fb3c6744a0a6bcdd2aa0a513b)
2023-08-31 17:56:20 +08:00

26 lines
795 B
Diff

From 97f65bfa392b5663e023f5bee46697e778423b55 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Mon, 28 Aug 2023 17:02:22 +0800
Subject: [PATCH] fix the validation function of input
---
agents/ocf/HealthCPU.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/ocf/HealthCPU.in b/agents/ocf/HealthCPU.in
index a852a7a..4bd6e36 100755
--- a/agents/ocf/HealthCPU.in
+++ b/agents/ocf/HealthCPU.in
@@ -207,7 +207,7 @@ meta-data) meta_data
;;
start) healthcpu_start;;
stop) healthcpu_stop;;
-monitor) healthcpu_monitor;;
+monitor) healthcpu_validate && healthcpu_monitor;;
reload-agent) healthcpu_reload_agent;;
validate-all) healthcpu_validate;;
usage|help) healthcpu_usage
--
2.33.1.windows.1