[pve-devel] [PATCH v2 ha-manager 11/12] Log timeout parameter when present

Fabian Ebner f.ebner at proxmox.com
Mon Sep 30 09:22:36 CEST 2019


Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
 src/PVE/HA/LRM.pm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/PVE/HA/LRM.pm b/src/PVE/HA/LRM.pm
index e5eee94..95ec351 100644
--- a/src/PVE/HA/LRM.pm
+++ b/src/PVE/HA/LRM.pm
@@ -774,7 +774,11 @@ sub exec_resource_agent {
 
 	return SUCCESS if !$running;
 
-	$haenv->log("info", "stopping service $sid");
+	if (defined($params->{timeout})) {
+	    $haenv->log("info", "stopping service $sid (timeout=$params->{timeout})");
+	} else {
+	    $haenv->log("info", "stopping service $sid");
+	}
 
 	$plugin->shutdown($haenv, $id, $params->{timeout});
 
-- 
2.20.1





More information about the pve-devel mailing list