Enhance Proxmox components with input validation, error handling, and UI improvements
This commit is contained in:
@@ -1059,7 +1059,7 @@ class Storage extends Component
|
||||
|
||||
// Find unused disks and delete the one we just detached
|
||||
foreach ($config as $key => $value) {
|
||||
if (str_starts_with($key, 'unused') && str_contains($value, $this->drives[$driveKey]['volume'])) {
|
||||
if (str_starts_with($key, 'unused') && trim($value) === $this->drives[$driveKey]['volume']) {
|
||||
$proxmox->request(
|
||||
'/nodes/' . $this->server->node->name . '/qemu/' . $this->server->vm_id . '/config',
|
||||
'put',
|
||||
|
||||
Reference in New Issue
Block a user