diff options
author | Zuul <zuul@review.openstack.org> | 2018-01-15 05:53:05 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2018-01-15 05:53:05 +0000 |
commit | 81ed23639ed4c7c0daacad6fc84ecb4f743a403e (patch) | |
tree | fb75e731d3df4eb62e2c6d1b93d6e21cda4d5e23 /tools/validate-templates | |
parent | eb93bfeb78d18b8ccaf5dd79760892c03d63350e (diff) | |
parent | 7925832f584ac5f73a1680220fdba5a8229e7305 (diff) | |
download | heat-templates-81ed23639ed4c7c0daacad6fc84ecb4f743a403e.tar.gz |
Merge "Migrate templates job to Zuul v3"
Diffstat (limited to 'tools/validate-templates')
-rwxr-xr-x | tools/validate-templates | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/validate-templates b/tools/validate-templates index 2ebb12a..59f9f1d 100755 --- a/tools/validate-templates +++ b/tools/validate-templates @@ -1,12 +1,11 @@ #!/usr/bin/env python import os -import re import subprocess import sys -EXCLUDED_DIRS = ('contrib', 'elements', 'invalid') +EXCLUDED_DIRS = ('contrib', 'elements', 'invalid', 'playbooks') def main(args): @@ -20,7 +19,8 @@ def main(args): if excluded in dirs: dirs.remove(excluded) for name in files: - if name.endswith((".yaml", ".template")): + if name.endswith((".yaml", ".template") + ) and not name == ".zuul.yaml": got_error = validate(root, name) or got_error sys.exit(int(got_error)) |