You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I perform a DELETE request using the library (version 4.1.0 installed via composer) in order to delete an existing virtual machine on my proxmox environment.
This is the request I am trying to perform (the screenshot is from my proxmox VM API documentation):
When I try to pass optional parameters in the associative array to the request, cURL crashes.
If no optional parameters are passed to the function (I tried to pass an empty array), the function succeeds.
The API URI inside the sprintf() function is correctly built. When the script runs its value is '/nodes/proxmox4/qemu/883', so the issue is not here.
This is the PHP 7.4 code I written:
$this->logger->info('Deleting the virtual machine and its related disks...');
$this->proxmox->delete(sprintf('/nodes/%s/qemu/%d', $deleteVm['node'], $deleteVm['vmid']), [
'destroy-unreferenced-disks' => 1,
'purge' => 1,
]);
This is the RuntimeException caught by the parent class, displayed as warning in the console:
The text was updated successfully, but these errors were encountered:
No answers from @zzantares so far, this is still my piece of code in the project ;(
$this->logger->info('Deleting the virtual machine and its related disks...');
$this->proxmox->delete(sprintf('/nodes/%s/qemu/%d', $deleteVm['node'], $deleteVm['vmid']), [/* FIXME: This parameters crashes the request, leave uneffective for now. An issue to the maintaner has been opened. 'destroy-unreferenced-disks' => 1, 'purge' => 1,*/]);
`
I perform a
DELETE
request using the library (version4.1.0
installed viacomposer
) in order to delete an existing virtual machine on my proxmox environment.This is the request I am trying to perform (the screenshot is from my proxmox VM API documentation):
When I try to pass optional parameters in the associative array to the request, cURL crashes.
If no optional parameters are passed to the function (I tried to pass an empty array), the function succeeds.
The API URI inside the
sprintf()
function is correctly built. When the script runs its value is'/nodes/proxmox4/qemu/883'
, so the issue is not here.This is the
PHP 7.4
code I written:This is the
RuntimeException
caught by the parent class, displayed as warning in the console:The text was updated successfully, but these errors were encountered: