replace disk_capacity by disk

Partially Implements: blueprint improve-compute-data-model

Change-Id: I9af8d3e5ad3288d56f9ef5ef998b56f9a3e6622d
This commit is contained in:
licanwei
2019-07-27 10:23:21 +08:00
parent 6cc9ea7cfb
commit 86ea9c8e7b
3 changed files with 3 additions and 3 deletions

View File

@@ -63,7 +63,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