summaryrefslogtreecommitdiffstats
path: root/nova/compute
diff options
context:
space:
mode:
authorEd Leafe <ed@leafe.com>2011-08-18 16:22:56 +0000
committerEd Leafe <ed@leafe.com>2011-08-18 16:22:56 +0000
commit186987d854fabde120a37713909eaecfbabeaece (patch)
treedb78852e1207b481ecce3deb66b42d4e8c5810ae /nova/compute
parentfc7106a5ea476f94c0f832dafebb17181cbe6177 (diff)
Corrected the hardcoded filter path. Also simplified the filter matching code in host_filter.py
Diffstat (limited to 'nova/compute')
-rw-r--r--nova/compute/api.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py
index e909e9959..229d02af4 100644
--- a/nova/compute/api.py
+++ b/nova/compute/api.py
@@ -411,12 +411,11 @@ class API(base.Base):
LOG.debug(_("Casting to scheduler for %(pid)s/%(uid)s's"
" (all-at-once)") % locals())
- filter_class = 'nova.scheduler.host_filter.InstanceTypeFilter'
request_spec = {
'image': image,
'instance_properties': base_options,
'instance_type': instance_type,
- 'filter': filter_class,
+ 'filter': 'InstanceTypeFilter'
'blob': zone_blob,
'num_instances': num_instances,
}