Skip to content

Commit

Permalink
Adjust callbacks.py for Volume.resize API change
Browse files Browse the repository at this point in the history
  • Loading branch information
a-barinov committed May 28, 2022
1 parent 8ba6fc4 commit 0a1085b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qubes/storage/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0a1085b

Please sign in to comment.