summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThomas Herve <thomas.herve@enovance.com>2014-03-28 13:42:27 +0100
committerThomas Herve <thomas.herve@enovance.com>2014-04-23 16:51:41 +0200
commit390fb36e7f2a69c589327e0ad7fc4cdd06bb032c (patch)
tree67c7de31ea409579ae670779e18abca1d2e30070 /tools
parent1b4801702059d19b69ce7b1447eaa5d909847515 (diff)
downloadheat-templates-390fb36e7f2a69c589327e0ad7fc4cdd06bb032c.tar.gz
Move rackspace templates in a contrib directory
The patch moves the templates using rackspace resources in a contrib directory and excludes them from the validation tool. Change-Id: Ib9bdb642439468aca27804c00d2c53d5ed9ed2b4
Diffstat (limited to 'tools')
-rwxr-xr-xtools/validate-templates6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/validate-templates b/tools/validate-templates
index 874c6cf..b2f181d 100755
--- a/tools/validate-templates
+++ b/tools/validate-templates
@@ -5,6 +5,9 @@ import subprocess
import sys
+EXCLUDED_DIRS = ('contrib',)
+
+
def main(args):
if len(args) != 1:
raise SystemExit("Takes one argument, the path to the templates")
@@ -12,6 +15,9 @@ def main(args):
path = args[0]
got_error = False
for root, dirs, files in os.walk(path):
+ for excluded in EXCLUDED_DIRS:
+ if excluded in dirs:
+ dirs.remove(excluded)
for name in files:
if name.endswith((".yaml", ".template")):
got_error = validate(root, name)