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
fix mac_address logic in j2 template
[yaml_builds.git]
/
tools
/
j2
/
serverrc.j2
diff --git
a/tools/j2/serverrc.j2
b/tools/j2/serverrc.j2
index
b9f768f
..
de8bb40
100644
(file)
--- a/
tools/j2/serverrc.j2
+++ b/
tools/j2/serverrc.j2
@@
-28,7
+28,7
@@
SRV_OOB_USR={{yaml.ipmi_admin.username}}
SRV_OOB_PWD={{yaml.ipmi_admin.password}}
# mac address of server to be used during the build - not required for Dell servers
SRV_OOB_PWD={{yaml.ipmi_admin.password}}
# mac address of server to be used during the build - not required for Dell servers
-{% if '
genesis.mac_address' in yaml
%}
+{% if '
mac_address' in yaml.genesis
%}
SRV_MAC={{yaml.genesis.mac_address}}
{% endif %}
SRV_MAC={{yaml.genesis.mac_address}}
{% endif %}