Commit 5ca86fb9 by Dudás Ádám

storage: add activity logging to destroy method

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