Merge "Improve logging to debug invalid "extra_specs" entries"

This commit is contained in:
Jenkins 2016-02-29 03:14:25 +00:00 committed by Gerrit Code Review
commit 687ea8dd30

View File

@ -51,6 +51,8 @@ class CapabilitiesFilter(filters.BaseHostFilter):
except AttributeError: except AttributeError:
return False return False
if cap is None: if cap is None:
LOG.debug("Host doesn't provide capability '%(cap)s' " %
{'cap': scope[index]})
return False return False
if not extra_specs_ops.match(cap, req): if not extra_specs_ops.match(cap, req):
LOG.debug("extra_spec requirement '%(req)s' " LOG.debug("extra_spec requirement '%(req)s' "