summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@yahoo.com>2010-09-09 21:29:00 -0700
committerVishvananda Ishaya <vishvananda@yahoo.com>2010-09-09 21:29:00 -0700
commitf40c194977b53b7b99a4234f2c1a3b3bfb39c00e (patch)
treedeb797f89e98177a207335c76960047bb031667d
parent6c4d301eab48b841b4b6ca19a96b3e9748f27b57 (diff)
kwargs don't work if you prepend an underscore
-rw-r--r--nova/scheduler/simple.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/nova/scheduler/simple.py b/nova/scheduler/simple.py
index ea4eef98e..e53e9fa7e 100644
--- a/nova/scheduler/simple.py
+++ b/nova/scheduler/simple.py
@@ -37,7 +37,7 @@ flags.DEFINE_integer("max_networks", 1000,
class SimpleScheduler(chance.ChanceScheduler):
"""Implements Naive Scheduler that tries to find least loaded host."""
- def schedule_run_instance(self, context, _instance_id, *_args, **_kwargs):
+ def schedule_run_instance(self, context, *_args, **_kwargs):
"""Picks a host that is up and has the fewest running instances."""
results = db.service_get_all_compute_sorted(context)
@@ -49,7 +49,7 @@ class SimpleScheduler(chance.ChanceScheduler):
return service['host']
raise driver.NoValidHost("No hosts found")
- def schedule_create_volume(self, context, _volume_id, *_args, **_kwargs):
+ def schedule_create_volume(self, context, *_args, **_kwargs):
"""Picks a host that is up and has the fewest volumes."""
results = db.service_get_all_volume_sorted(context)
@@ -61,8 +61,7 @@ class SimpleScheduler(chance.ChanceScheduler):
return service['host']
raise driver.NoValidHost("No hosts found")
- def schedule_set_network_host(self, context, _network_id,
- *_args, **_kwargs):
+ def schedule_set_network_host(self, context, *_args, **_kwargs):
"""Picks a host that is up and has the fewest networks."""
results = db.service_get_all_network_sorted(context)