From 6d745036bc98cac674d2740dc20c2029dc201522 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 2 Feb 2021 11:15:17 +0000 Subject: [PATCH] trivial: Remove FakeScheduler (for realz) Change I61c1a47559645c41089747cc81270848b58b68f9 purported to remove the unnecessary 'FakeScheduler', however, deleting the actual class never happened. Do that now. Change-Id: I865610c924d903cfafc049f0f2b9ab21b95a780b Signed-off-by: Stephen Finucane --- nova/tests/unit/scheduler/fakes.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/nova/tests/unit/scheduler/fakes.py b/nova/tests/unit/scheduler/fakes.py index 31db57c479..658c82c20e 100644 --- a/nova/tests/unit/scheduler/fakes.py +++ b/nova/tests/unit/scheduler/fakes.py @@ -21,7 +21,6 @@ import datetime from oslo_utils.fixture import uuidsentinel from nova import objects -from nova.scheduler import driver from nova.scheduler import host_manager @@ -224,11 +223,3 @@ class FakeHostState(host_manager.HostState): self.instances = {} for (key, val) in attribute_dict.items(): setattr(self, key, val) - - -class FakeScheduler(driver.Scheduler): - - def select_destinations(self, context, spec_obj, instance_uuids, - alloc_reqs_by_rp_uuid, provider_summaries, - allocation_request_version=None, return_alternates=False): - return []