From 6e2d1a459a804c0990e0c07ecaf4e62e0b9759ec Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Fri, 6 May 2016 04:58:10 +0000 Subject: [PATCH] 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 --- tools/custom_guidelines.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/custom_guidelines.py b/tools/custom_guidelines.py index 1617c2bfa8..5356ed6446 100644 --- a/tools/custom_guidelines.py +++ b/tools/custom_guidelines.py @@ -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('.', '/')):