fix mac_address logic in j2 template
[yaml_builds.git] / tools / j2 / serverrc.j2
index b9f768f..de8bb40 100644 (file)
@@ -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
-{% if 'genesis.mac_address' in yaml %}
+{% if 'mac_address' in yaml.genesis %}
 SRV_MAC={{yaml.genesis.mac_address}}
 {% endif %}