From 5bb1f17aae902bb0fd9d42004327b7d7cad67a4e Mon Sep 17 00:00:00 2001 From: Andrey Limachko Date: Wed, 9 Mar 2022 04:54:15 +0400 Subject: [PATCH] Fix VMs hang up after destroy action --- library/proxmox_kvm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/proxmox_kvm.py b/library/proxmox_kvm.py index 78dc25a..28cccb5 100644 --- a/library/proxmox_kvm.py +++ b/library/proxmox_kvm.py @@ -795,7 +795,7 @@ def start_vm(module, proxmox, vm, vmid, timeout): def stop_vm(module, proxmox, vm, vmid, timeout, force): if force: - taskid = getattr(proxmox.nodes(vm[0]['node']), VZ_TYPE)(vmid).status.shutdown.post(forceStop=1) + taskid = getattr(proxmox.nodes(vm[0]['node']), VZ_TYPE)(vmid).status.stop.post() else: taskid = getattr(proxmox.nodes(vm[0]['node']), VZ_TYPE)(vmid).status.shutdown.post() while timeout: