feat: update drive removal logic to use 'delete' instead of 'none' to prevent CD-ROM creation

This commit is contained in:
2025-12-05 05:57:37 -05:00
parent f40b53e301
commit ae2ab22453

View File

@@ -868,12 +868,12 @@ class Storage extends Component
]
);
// Step 2: Remove the old drive configuration
// Step 2: Remove the old drive configuration using delete (not 'none' which creates CD-ROM)
$proxmox->request(
'/nodes/' . $this->server->node->name . '/qemu/' . $this->server->vm_id . '/config',
'put',
[
$this->movingDriveKey => 'none',
'delete' => $this->movingDriveKey,
]
);