diff options
Diffstat (limited to 'openstack/common/scheduler')
| -rw-r--r-- | openstack/common/scheduler/filters/capabilities_filter.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openstack/common/scheduler/filters/capabilities_filter.py b/openstack/common/scheduler/filters/capabilities_filter.py index df69955..89e2bdb 100644 --- a/openstack/common/scheduler/filters/capabilities_filter.py +++ b/openstack/common/scheduler/filters/capabilities_filter.py @@ -25,8 +25,9 @@ class CapabilitiesFilter(filters.BaseHostFilter): """HostFilter to work with resource (instance & volume) type records.""" def _satisfies_extra_specs(self, capabilities, resource_type): - """Check that the capabilities provided by the services - satisfy the extra specs associated with the instance type""" + """Check that the capabilities provided by the services satisfy + the extra specs associated with the instance type. + """ extra_specs = resource_type.get('extra_specs', []) if not extra_specs: return True |
