[pve-devel] [PATCH v3 ha-manager 8/9] Log timeout parameter when present

Fabian Ebner f.ebner at proxmox.com
Wed Oct 2 11:46:09 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