From 0a1085b61f94912b4583d0846c4463e1d7c8164f Mon Sep 17 00:00:00 2001 From: a-barinov Date: Sat, 28 May 2022 15:14:10 +0200 Subject: [PATCH] Adjust callbacks.py for Volume.resize API change --- qubes/storage/callback.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubes/storage/callback.py b/qubes/storage/callback.py index 520cf8559..eb72825ba 100644 --- a/qubes/storage/callback.py +++ b/qubes/storage/callback.py @@ -454,10 +454,10 @@ async def remove(self): await self._callback('post_volume_remove') return ret - async def resize(self, size): + async def resize(self, size, allow_shrink=False): await self._assert_initialized() await self._callback('pre_volume_resize', cb_args=[size]) - return await coro_maybe(self._cb_impl.resize(size)) + return await coro_maybe(self._cb_impl.resize(size, allow_shrink)) async def start(self): await self._assert_initialized()