1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

fix edit instance volume for running instances to prevent bus error

This commit is contained in:
catborise 2021-06-10 13:46:08 +03:00
parent 768b49ea88
commit 646eae59a2
3 changed files with 3 additions and 3 deletions

View file

@ -596,8 +596,8 @@ def edit_volume(request, pk):
shareable = bool(request.POST.get("vol_shareable", False))
readonly = bool(request.POST.get("vol_readonly", False))
disk_type = request.POST.get("vol_type", "")
new_bus = request.POST.get("vol_bus", "")
bus = request.POST.get("vol_bus_old", "")
new_bus = request.POST.get("vol_bus", bus)
serial = request.POST.get("vol_serial", "")
format = request.POST.get("vol_format", "")
cache = request.POST.get("vol_cache", app_settings.INSTANCE_VOLUME_DEFAULT_CACHE)