Commit b8034782 by Kálmán Viktor

stroage: fix failed property

parent 8674654d
......@@ -135,7 +135,8 @@ class Disk(AclBase, TimeStampedModel):
def failed(self):
""" Returns True if the last activity on the disk is failed.
return not self.activity_log.all().order_by('-id')[0].succeeded
result = self.activity_log.all().order_by('-id')[0].succeeded
return not (result is None) and not result
def path(self):
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