Repository: ansible-collections/community.general

Issue:
Duplicate vmid in proxmox_disk module
### Summary

When resizing disk got error:
```
fatal: [<node_name> -> localhost]: FAILED! => {"changed": false, "msg": "Failed to resize disk scsi0 in VM <vmid> with exception: 400 Bad Request: Parameter verification failed. - {'vmid': 'duplicate parameter (already defined in URI)'}"}
```

`proxmox.proxmox_api.nodes(vm['node']).qemu(vmid).resize.set(vmid=vmid, disk=disk, size=size)`

### Issue Type

Bug Report

### Component Name

[plugins/modules/proxmox_disk.py](https://github.com/ansible-collections/community.general/blob/main/plugins/modules/proxmox_disk.py)

### Ansible Version

ansible --version : core 2.13.4



### Community.general Version

```
Collection Version
----------------- -------
community.general 5.7.0
```


### Configuration

_No response_

### OS / Environment

_No response_

### Steps to Reproduce


```yaml (paste below)
- name: "Resize vHDD"
  delegate_to: localhost
  community.general.proxmox_disk:
    api_host: "{{ pmx_node }}"
    api_user: "{{ pmx_user }}"
    api_token_id: "{{ api_token_id }}"
    api_token_secret: "{{ api_token_secret }}"
    vmid: "{{ vmid }}" #FIXME - 'vmid': 'duplicate parameter (already defined in URI)'
    
    ### Config
    disk: "scsi0"
    size: "{{ hdd_size | default('4')  }}G"
    state: resized
```


### Expected Results

vDisk resized

### Actual Results

```console
The full traceback is:
  File "/tmp/ansible_community.general.proxmox_disk_payload_1xpji5zq/ansible_community.general.proxmox_disk_payload.zip/ansible_collections/community/general/plugins/modules/cloud/misc/proxmox_disk.py", line 729, in main
  File "/home/<user>/.local/lib/python3.8/site-packages/proxmoxer/core.py", line 158, in set
    return self.put(*args, **data)
  File "/home/<user>/.local/lib/python3.8/site-packages/proxmoxer/core.py", line 149, in put
    return self(args)._request("PUT", data=data)
  File "/home/<user>/.local/lib/python3.8/site-packages/proxmoxer/core.py", line 123, in _request
    raise ResourceException(
fatal: [<node_name> -> localhost]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
          ...
          ANONYMIZED
          ...
        }
    },
    "msg": "Failed to resize disk scsi0 in VM <vmid>> with exception: 400 Bad Request: Parameter verification failed. - {'vmid': 'duplicate parameter (already defined in URI)'}"
}
```


### Code of Conduct

- [X] I agree to follow the Ansible Code of Conduct


Discussion:
Files identified in the description:
* [`plugins/modules/proxmox_disk.py`](https://github.com/ansible-collections/community.general/blob/main/plugins/modules/proxmox_disk.py)

If these files are incorrect, please update the `component name` section of the description or use the `!component` bot command.

[click here for bot help](https://github.com/ansible/ansibullbot/blob/devel/ISSUE_HELP.md)
<!--- boilerplate: components_banner --->
cc @Ajpantuso @Thulium-Drake @castorsky @joshainglis @karmab @tleguern
[click here for bot help](https://github.com/ansible/ansibullbot/blob/devel/ISSUE_HELP.md)
<!--- boilerplate: notify --->
Hello @Doc-Tiebeau! I cannot reproduce your bug. Can you provide which versions of software you are using: proxmoxer library, Proxmox PVE, OS on the Ansible-controller.

Resolving patch:
diff --git a/plugins/modules/cloud/misc/proxmox_disk.py b/plugins/modules/cloud/misc/proxmox_disk.py
--- a/plugins/modules/cloud/misc/proxmox_disk.py
+++ b/plugins/modules/cloud/misc/proxmox_disk.py
@@ -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)))


Test patch: