From 484a1df32d5854312ef31c5b488fc07fff8428c4 Mon Sep 17 00:00:00 2001 From: Sergey Lukjanov Date: Thu, 30 May 2013 08:32:42 +0400 Subject: Enable hacking H403 test H403 multi line docstring end on new line Change-Id: I33249651026b54ef346214965e909835288bb14e --- openstack/common/scheduler/filters/capabilities_filter.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'openstack/common/scheduler') 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 -- cgit