From 9e32e6a39553725133546b2b3693eeab9c890c08 Mon Sep 17 00:00:00 2001 From: Eric Trombly Date: Wed, 25 Oct 2023 15:04:18 -0500 Subject: [PATCH] fix tests --- plugins/modules/proxmox.py | 2 +- plugins/modules/proxmox_kvm.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/modules/proxmox.py b/plugins/modules/proxmox.py index bed081ae68a..ebba2ec78fd 100644 --- a/plugins/modules/proxmox.py +++ b/plugins/modules/proxmox.py @@ -815,7 +815,7 @@ def main(): module.exit_json(changed=True, vmid=vmid, msg="VM %s is shutting down" % vmid) except Exception as e: module.fail_json(msg="stopping of VM %s failed with exception: %s" % (vmid, e)) - + elif state == 'template': try: vm = proxmox.get_vm(vmid) diff --git a/plugins/modules/proxmox_kvm.py b/plugins/modules/proxmox_kvm.py index 3ad6c6ae07b..d88316a4cc9 100644 --- a/plugins/modules/proxmox_kvm.py +++ b/plugins/modules/proxmox_kvm.py @@ -1154,7 +1154,7 @@ def restart_vm(self, vm, force, **status): except Exception as e: self.module.fail_json(vmid=vmid, msg="restarting of VM %s failed with exception: %s" % (vmid, e)) return False - + def convert_to_template(self, vm, timeout, force): vmid = vm['vmid'] try: @@ -1529,7 +1529,7 @@ def main(): module.exit_json(changed=True, vmid=vmid, msg="VM %s is shutting down" % vmid, **status) except Exception as e: module.fail_json(vmid=vmid, msg="stopping of VM %s failed with exception: %s" % (vmid, e), **status) - + elif state == 'template': if not vmid: module.fail_json(msg='VM with name = %s does not exist in cluster' % name)