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: