From e73a41a7ade6c2115e284b8a3e37e22cbdbf044a Mon Sep 17 00:00:00 2001 From: Felix Bruns Date: Fri, 10 May 2024 00:31:48 +0200 Subject: [PATCH] Use shutdown instead of stop command Shutdown is less severe --- lib/src/proxmox_webservice/service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/proxmox_webservice/service.dart b/lib/src/proxmox_webservice/service.dart index 0433b77..d2c3e9f 100644 --- a/lib/src/proxmox_webservice/service.dart +++ b/lib/src/proxmox_webservice/service.dart @@ -128,7 +128,7 @@ class ProxmoxWebService { Log().info("toggling VM: ${isRunning ? "stopping" : "starting"}"); final endpoint = - "/api2/json/nodes/${node.node}/qemu/${vm.vmid}/status/${isRunning ? "stop" : "start"}"; + "/api2/json/nodes/${node.node}/qemu/${vm.vmid}/status/${isRunning ? "shutdown" : "start"}"; final resp = await _doPost(endpoint, {}, debug: true); if (resp == null) return false;