From 9e05e9177dd8a3d22cf1afed4ecbefc2ea26cf6e Mon Sep 17 00:00:00 2001 From: Maru Newby Date: Fri, 24 Aug 2012 14:55:23 -0700 Subject: [PATCH] Fix broken SimpleScheduler.schedule_run_instance() * The fix for 1037829 broke SimpleScheduler by unnecessarily including the 'self' parameter in the invocation of the parent's schedule_run_instance(). This change removes the 'self' parameter. * Addresses bug 1041385 Change-Id: I95b28fce9b17b6c1d9ca2f19cd83608cde8479ee --- nova/scheduler/simple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/scheduler/simple.py b/nova/scheduler/simple.py index 354e7cfc1..f8a1e4154 100644 --- a/nova/scheduler/simple.py +++ b/nova/scheduler/simple.py @@ -51,7 +51,7 @@ class SimpleScheduler(chance.ChanceScheduler): deprecated.warn(_('SimpleScheduler now only covers volume scheduling ' 'and is deprecated in Folsom. Non-volume functionality in ' 'SimpleScheduler has been replaced by FilterScheduler')) - super(SimpleScheduler, self).schedule_run_instance(self, context, + super(SimpleScheduler, self).schedule_run_instance(context, request_spec, reservations, *_args, **_kwargs) def schedule_create_volume(self, context, volume_id, *_args, **_kwargs):