storage/callback: volume callbacks now also rceive the source volume

as argument (if there's any)

This is useful for disposable VMs to identify from which template they
originate.
This commit is contained in:
3hhh 2020-07-05 18:07:28 +02:00
parent 57e7a02912
commit 529e4bfbbf
No known key found for this signature in database
GPG Key ID: EB03A691DB2F0833

View File

@ -442,7 +442,7 @@ class CallbackVolume(qubes.storage.Volume):
def _callback(self, cb, cb_args=None, **kwargs):
if cb_args is None:
cb_args = []
vol_args = [self.name, self.vid, *cb_args]
vol_args = [self.name, self.vid, self.source, *cb_args]
yield from self._cb_pool._callback(cb, cb_args=vol_args, **kwargs) # pylint: disable=protected-access
@asyncio.coroutine