From 0598a56789c49df0ee8322632442b40013f1f319 Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Wed, 4 Jan 2012 20:37:57 +0000 Subject: [PATCH] Fix spelling of variable It appears the intent was disk_requirement_gb instead of _bg Change-Id: Ibea2afd9f7489e9fefe02ecd1cdb735a1221e222 --- nova/scheduler/distributed_scheduler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nova/scheduler/distributed_scheduler.py b/nova/scheduler/distributed_scheduler.py index 4ea27910..c4823efa 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