api/admin: always save after self.dest.storage.resize()
This commit is contained in:
parent
2b4b45ead8
commit
66e44e67de
@ -457,7 +457,9 @@ class QubesAdminAPI(qubes.api.AbstractQubesAPI):
|
|||||||
|
|
||||||
self.fire_event_for_permission(size=size)
|
self.fire_event_for_permission(size=size)
|
||||||
|
|
||||||
|
try:
|
||||||
yield from self.dest.storage.resize(self.arg, size)
|
yield from self.dest.storage.resize(self.arg, size)
|
||||||
|
finally: # even if calling qubes.ResizeDisk inside the VM failed
|
||||||
self.app.save()
|
self.app.save()
|
||||||
|
|
||||||
@qubes.api.method('admin.vm.volume.Import', no_payload=True,
|
@qubes.api.method('admin.vm.volume.Import', no_payload=True,
|
||||||
|
Loading…
Reference in New Issue
Block a user