Exclude plugins from custom_guidelines.py

This is broken by our plugin package magic, so lets exclude
the plugin package from this tool.

Change-Id: I2da474b706cdb33e98675edabb0f607106c816d0
This commit is contained in:
Steve Baker 2016-05-06 04:58:10 +00:00
parent 2f9b344c67
commit 6e2d1a459a
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@ class HeatCustomGuidelines(object):
# Skip resources, which defined as template resource in environment
if cls.__module__ == 'heat.engine.resources.template_resource':
continue
# Skip discovered plugin resources
if cls.__module__ == 'heat.engine.plugins':
continue
if (lambda module: True
if [path for path in exclude if path in module]
else False)(cls.__module__.replace('.', '/')):