diff options
| author | Yunhong, Jiang <yunhong.jiang@intel.com> | 2012-11-01 11:38:48 +0800 |
|---|---|---|
| committer | Yunhong, Jiang <yunhong.jiang@intel.com> | 2012-11-14 18:44:27 +0800 |
| commit | faba7cf44bcf59d9ac7e342cd4b4d40883341ca5 (patch) | |
| tree | a501355c84d5135bcc0263f92bb8e304afac3d6d /nova/scheduler | |
| parent | aa2bb87a5e28cb19a0e9244807daacb16f59ce03 (diff) | |
Check instance_type in compute capability filter
Instance type is guaranteed to exist and not be None or empty dict
as a quite a while ago, although it used to be that prep_resize
didn't have it.
Remove the checking for instance_type.
Change-Id: I391615114bd9d9359eeb0b2b3642dcec86a8285e
Signed-off-by: Yunhong, Jiang <yunhong.jiang@intel.com>
Diffstat (limited to 'nova/scheduler')
| -rw-r--r-- | nova/scheduler/filters/compute_filter.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/nova/scheduler/filters/compute_filter.py b/nova/scheduler/filters/compute_filter.py index 019068269..93ec7d16e 100644 --- a/nova/scheduler/filters/compute_filter.py +++ b/nova/scheduler/filters/compute_filter.py @@ -28,9 +28,6 @@ class ComputeFilter(filters.BaseHostFilter): def host_passes(self, host_state, filter_properties): """Returns True for only active compute nodes""" - instance_type = filter_properties.get('instance_type') - if not instance_type: - return True capabilities = host_state.capabilities service = host_state.service |
