summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)