Code Review
/
yaml_builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
added key checks and logging to jinja2 processing
[yaml_builds.git]
/
templates
/
baremetal
/
rack.j2
diff --git
a/templates/baremetal/rack.j2
b/templates/baremetal/rack.j2
index
b6e6620
..
464a826
100644
(file)
--- a/
templates/baremetal/rack.j2
+++ b/
templates/baremetal/rack.j2
@@
-49,7
+49,7
@@
data:
tags:
- 'masters'
{% endfor %}
-{% for server in yaml.workers %}
+{%
if 'workers' in yaml %}{%
for server in yaml.workers %}
---
schema: 'drydock/BaremetalNode/v1'
metadata:
@@
-84,5
+84,5
@@
data:
rack: RACK01
tags:
- 'workers'
-{% endfor %}
+{% endfor %}
{% endif %}
...