replace disk_capacity by disk
Partially Implements: blueprint improve-compute-data-model Change-Id: I9af8d3e5ad3288d56f9ef5ef998b56f9a3e6622d
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user