summaryrefslogtreecommitdiff
path: root/tools/validate-all-yaml.sh
diff options
context:
space:
mode:
authorMartin André <martin.andre@kvhasia.com>2015-04-14 13:26:31 +0900
committerMartin André <martin.andre@kvhasia.com>2015-04-14 13:32:09 +0900
commitbfe0d0e0e9d060dd356589c57df9f3e2d07a284f (patch)
tree005099de98fa8fd54b20fac00ebd5de4a9181d78 /tools/validate-all-yaml.sh
parent005e4293e3dddd90cf46a3a2730ad40a4c3bbba3 (diff)
downloadkolla-bfe0d0e0e9d060dd356589c57df9f3e2d07a284f.tar.gz
kolla-bfe0d0e0e9d060dd356589c57df9f3e2d07a284f.zip
Fix validate-all-yaml.sh to check for files with yml extension
YAML files can have .yaml or .yml extension. Make `validate-all-yaml.sh` check for *.yml files in addition to *.yaml files since we now have some of these in our source tree. This should help to prevent bogus YAML files to land in the repository. Change-Id: Id59273680fc2424f7b636033b1d641efcaaeba22
Diffstat (limited to 'tools/validate-all-yaml.sh')
-rwxr-xr-xtools/validate-all-yaml.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/validate-all-yaml.sh b/tools/validate-all-yaml.sh
index b19cfe18a..bab2133b5 100755
--- a/tools/validate-all-yaml.sh
+++ b/tools/validate-all-yaml.sh
@@ -3,6 +3,6 @@
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
cd "$(dirname "$REAL_PATH")/.."
-find . -name '*.yaml' -print0 |
+find . -name '*.yaml' -o -name '*.yml' -print0 |
xargs -0 python tools/validate-yaml.py || exit 1