From dfd97c16cf35a97fc09bc5906a902aa80595449b Mon Sep 17 00:00:00 2001 From: Guba Sándor Date: Wed, 16 Apr 2014 15:55:23 +0200 Subject: [PATCH] storage: rename ready to is_ready --- circle/storage/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/circle/storage/models.py b/circle/storage/models.py index f243fa5..a347983 100644 --- a/circle/storage/models.py +++ b/circle/storage/models.py @@ -122,7 +122,7 @@ class Disk(AclBase, TimeStampedModel): self.disk = disk @property - def ready(self): + def is_ready(self): """ Returns True if the disk is physically ready on the storage. It needs at least 1 successfull deploy action. @@ -310,7 +310,7 @@ class Disk(AclBase, TimeStampedModel): self.destroyed = None self.save() - if self.ready: + if self.is_ready: return True with disk_activity(code_suffix='deploy', disk=self, task_uuid=task_uuid, user=user) as act: @@ -505,7 +505,7 @@ class Disk(AclBase, TimeStampedModel): raise self.WrongDiskTypeError(self.type) if self.is_in_use: raise self.DiskInUseError(self) - if not self.ready: + if not self.is_ready: raise self.DiskIsNotReady(self) if not disk: base = None @@ -551,7 +551,7 @@ class Disk(AclBase, TimeStampedModel): if self.is_in_use: raise self.DiskInUseError(self) - if not self.ready: + if not self.is_ready: raise self.DiskIsNotReady(self) # from this point on, the caller has to guarantee that the disk is not -- libgit2 0.26.0