Skip to content

Commit

Permalink
Fix: Duplicate vmid in proxmox_disk module #5492 (#5493)
Browse files Browse the repository at this point in the history
  • Loading branch information
Doc-Tiebeau authored Nov 13, 2022
1 parent 7879893 commit 8280db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/proxmox_disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ def main():
actual_size = disk_config['size']
if size == actual_size:
module.exit_json(changed=False, vmid=vmid, msg="Disk %s is already %s size" % (disk, size))
proxmox.proxmox_api.nodes(vm['node']).qemu(vmid).resize.set(vmid=vmid, disk=disk, size=size)
proxmox.proxmox_api.nodes(vm['node']).qemu(vmid).resize.set(disk=disk, size=size)
module.exit_json(changed=True, vmid=vmid, msg="Disk %s resized in VM %s" % (disk, vmid))
except Exception as e:
module.fail_json(msg="Failed to resize disk %s in VM %s with exception: %s" % (disk, vmid, str(e)))
Expand Down

0 comments on commit 8280db9

Please sign in to comment.