Commit 5ca86fb9 by Dudás Ádám

storage: add activity logging to destroy method

parent bc56f9c1
......@@ -204,11 +204,12 @@ class Disk(TimeStampedModel):
if self.destroyed:
return False
# TODO add activity logging
self.destroyed =
with disk_activity(code_suffix='destroy', disk=self,
task_uuid=task_uuid, user=user):
self.destroyed =
return True
return True
def destroy_async(self, user=None):
return local_tasks.destroy.apply_async(args=[self, user],
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