vm: operation for removing a disk from the VM
Showing
... | @@ -2160,7 +2160,7 @@ class DiskRemoveView(DeleteView): | ... | @@ -2160,7 +2160,7 @@ class DiskRemoveView(DeleteView): |
disk = self.get_object() | disk = self.get_object() | ||
app = disk.get_appliance() | app = disk.get_appliance() | ||
app.disks.remove(disk) | app.remove_disk(disk=disk, user=request.user) | ||
|
|||
disk.destroy() | disk.destroy() | ||
next_url = request.POST.get("next") | next_url = request.POST.get("next") | ||
... | ... |