Commit e4b0d4f3 by Guba Sándor

fix DiskBaseIsNotReady error

parent 951d10c2
...@@ -166,6 +166,7 @@ class Disk(TimeStampedModel): ...@@ -166,6 +166,7 @@ class Disk(TimeStampedModel):
"deployed.") "deployed.")
def __init__(self, disk, params=None, **kwargs): def __init__(self, disk, params=None, **kwargs):
base = kwargs.get('base')
super(Disk.WrongDiskTypeError, self).__init__( super(Disk.WrongDiskTypeError, self).__init__(
disk, params,,, disk, params,,,
filename=disk.filename,, filename=disk.filename,,
...@@ -343,7 +344,7 @@ class Disk(TimeStampedModel): ...@@ -343,7 +344,7 @@ class Disk(TimeStampedModel):
if self.is_ready: if self.is_ready:
return True return True
if self.base and not self.base.is_ready: if self.base and not self.base.is_ready:
raise self.DiskIsNotReady(self, base=self.base) raise self.DiskBaseIsNotReady(self, base=self.base)
queue_name = self.get_remote_queue_name('storage', priority="fast") queue_name = self.get_remote_queue_name('storage', priority="fast")
disk_desc = self.get_disk_desc() disk_desc = self.get_disk_desc()
if self.base is not None: if self.base is not None:
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