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:
parent
57e7a02912
commit
529e4bfbbf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user