Commit 6c738666 by Dudás Ádám

storage: add return value for deploy

parent 2b355902
......@@ -102,8 +102,17 @@ class Disk(TimeStampedModel):
def deploy(self):
"""Reify the disk model on the associated data store.
:param self: the disk model to reify
:type self: storage.models.Disk
:return: True if a new reification of the disk has been created;
otherwise, False.
:rtype: bool
if self.ready:
return False
disk_desc = {
......@@ -116,6 +125,7 @@ class Disk(TimeStampedModel):
self.ready = True
return True
def delete_signal(cls, sender, instance, using, **kwargs):
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