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
/
profiles
/
host
/
cp-r01.j2
diff --git
a/templates/profiles/host/cp-r01.j2
b/templates/profiles/host/cp-r01.j2
index
e59df91
..
e66e85c
100644
(file)
--- a/
templates/profiles/host/cp-r01.j2
+++ b/
templates/profiles/host/cp-r01.j2
@@
-73,7
+73,7
@@
data:
physical_devices:
{% for disk in yaml.disks %}
{{disk.name}}:
- {% if
disk.labels
%}
+ {% if
'labels' in disk
%}
labels:
{% for key, value in disk.labels.items() %}
{{key}}: '{{value}}'