Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Trombly committed Oct 25, 2023
1 parent f839d7f commit 9e32e6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/modules/proxmox.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/proxmox_kvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9e32e6a

Please sign in to comment.