fix mac_address logic in j2 template 51/551/1
authordavidplunkett <dp7642@att.com>
Thu, 11 Apr 2019 21:30:22 +0000 (21:30 +0000)
committerdavidplunkett <dp7642@att.com>
Thu, 11 Apr 2019 21:30:22 +0000 (21:30 +0000)
Change-Id: I0fd17829e8e2fb16db50241e64c1c08c437e51fd
Signed-off-by: davidplunkett <dp7642@att.com>
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 %}