feat: update drive removal logic to use 'delete' instead of 'none' to prevent CD-ROM creation
This commit is contained in:
@@ -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,
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user