diff options
| author | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-01-04 20:37:57 +0000 |
|---|---|---|
| committer | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-01-04 20:57:37 +0000 |
| commit | 1a8a27668fc26f93e24ea137e11e939d793e06c6 (patch) | |
| tree | 8a113bde4ed4b625dc2baa2fc69e4b82e79d1ed0 | |
| parent | 15416928d47a0d3afbdf2b03964410ff968b74d2 (diff) | |
Fix spelling of variable
It appears the intent was disk_requirement_gb instead of _bg
Change-Id: Ibea2afd9f7489e9fefe02ecd1cdb735a1221e222
| -rw-r--r-- | nova/scheduler/distributed_scheduler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/scheduler/distributed_scheduler.py b/nova/scheduler/distributed_scheduler.py index 4ea27910d..c4823efad 100644 --- a/nova/scheduler/distributed_scheduler.py +++ b/nova/scheduler/distributed_scheduler.py @@ -300,7 +300,7 @@ class DistributedScheduler(driver.Scheduler): cost_functions = self.get_cost_functions() 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() @@ -335,7 +335,7 @@ class DistributedScheduler(driver.Scheduler): # Now consume the resources so the filter/weights # 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) # Next, tack on the host weights from the child zones |
