From 2fa7b1aa1cecf6963655dd613fdc4395a4d74626 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Thu, 9 Aug 2012 15:16:24 -0400 Subject: Make update_db an opt arg in scheduler manager. Updates the scheduler manager so that update_db is an optional argument. This fixes issues when trying to make RPC calls with the most recent version (1.4) of the scheduler RPC API. Fixes LP Bug #1035004. Change-Id: Ib998c0465cead1b8e117a7344557f8ff496c7e40 --- nova/scheduler/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nova/scheduler/manager.py b/nova/scheduler/manager.py index aae205098..4e500b4d3 100644 --- a/nova/scheduler/manager.py +++ b/nova/scheduler/manager.py @@ -144,8 +144,8 @@ class SchedulerManager(manager.Manager): # FIXME(comstud): Remove 'update_db' in a future version. It's only # here for rpcapi backwards compatibility. - def prep_resize(self, context, image, update_db, request_spec, - filter_properties, instance=None, instance_uuid=None, + def prep_resize(self, context, image, request_spec, filter_properties, + update_db=None, instance=None, instance_uuid=None, instance_type=None, instance_type_id=None, topic=None): """Tries to call schedule_prep_resize on the driver. Sets instance vm_state to ACTIVE on NoHostFound -- cgit