k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
412 B
20 lines
412 B
#!/usr/bin/env python
|
|
|
|
import sys
|
|
import traceback
|
|
from jinja2 import Environment
|
|
from jinja2.exceptions import TemplateSyntaxError
|
|
|
|
|
|
env = Environment()
|
|
errors = False
|
|
for template in sys.argv[1:]:
|
|
try:
|
|
with open(template) as t:
|
|
env.parse(t.read())
|
|
except TemplateSyntaxError as e:
|
|
print (template)
|
|
traceback.print_exc()
|
|
errors = True
|
|
if errors:
|
|
exit (1)
|