Merge "replace disk_capacity by disk"

This commit is contained in:
Zuul
2019-07-29 03:43:52 +00:00
committed by Gerrit Code Review
3 changed files with 3 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ class ComputeNode(compute_resource.ComputeResource):
@property
def disk_gb_free(self):
total = (self.disk_capacity-self.disk_gb_reserved)*self.disk_ratio
total = (self.disk-self.disk_gb_reserved)*self.disk_ratio
return total-self.disk_gb_used
@property