Promtool appends .yml, not .yaml, but for backwards compatibility, lets allow both

This commit is contained in:
Nuala Gaffey
2017-11-22 16:41:05 -05:00
parent 7c12e3379c
commit 40d746e12a

View File

@@ -11,7 +11,7 @@ metadata:
data: data:
EOF EOF
for f in assets/prometheus/rules/*.rules.yaml for f in assets/prometheus/rules/*.rules.y*ml
do do
echo " $(basename $f): |+" echo " $(basename $f): |+"
cat $f | sed "s/^/ /g" cat $f | sed "s/^/ /g"