Fix spelling of variable
It appears the intent was disk_requirement_gb instead of _bg Change-Id: Ibea2afd9f7489e9fefe02ecd1cdb735a1221e222
This commit is contained in:
@@ -300,7 +300,7 @@ class DistributedScheduler(driver.Scheduler):
|
|||||||
cost_functions = self.get_cost_functions()
|
cost_functions = self.get_cost_functions()
|
||||||
|
|
||||||
ram_requirement_mb = instance_type['memory_mb']
|
ram_requirement_mb = instance_type['memory_mb']
|
||||||
disk_requirement_bg = instance_type['local_gb']
|
disk_requirement_gb = instance_type['local_gb']
|
||||||
|
|
||||||
options = self._get_configuration_options()
|
options = self._get_configuration_options()
|
||||||
|
|
||||||
@@ -335,7 +335,7 @@ class DistributedScheduler(driver.Scheduler):
|
|||||||
|
|
||||||
# Now consume the resources so the filter/weights
|
# Now consume the resources so the filter/weights
|
||||||
# will change for the next instance.
|
# will change for the next instance.
|
||||||
weighted_host.hostinfo.consume_resources(disk_requirement_bg,
|
weighted_host.hostinfo.consume_resources(disk_requirement_gb,
|
||||||
ram_requirement_mb)
|
ram_requirement_mb)
|
||||||
|
|
||||||
# Next, tack on the host weights from the child zones
|
# Next, tack on the host weights from the child zones
|
||||||
|
|||||||
Reference in New Issue
Block a user