Commit 0e9a8a65 by Guba Sándor

storage: fixed disk_activity to accpet on_abort

parent 2bd2679c
......@@ -374,6 +374,7 @@ class DiskActivity(ActivityModel):
@contextmanager
def disk_activity(code_suffix, disk, task_uuid=None, user=None):
def disk_activity(code_suffix, disk, task_uuid=None, user=None,
on_abort=None, on_commit=None):
act = DiskActivity.create(code_suffix, disk, task_uuid, user)
return activitycontextimpl(act)
return activitycontextimpl(act, on_abort=on_abort, on_commit=on_commit)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment