From 1faebe1804e43eaedfb9461e2894e2d7a1e904c7 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 19 Jan 2011 20:53:18 +0000 Subject: [PATCH] -Fix problem where anaconda always populated a variable even if it isn't to be used git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8707 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/anaconda.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index eed72fc4c..b4ab2ed24 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -587,7 +587,7 @@ sub mknetboot #} # append the mac address my $mac; - if($machash->{$node}->[0] && $machash->{$node}->[0]->{'mac'}) { + if($useifname && $machash->{$node}->[0] && $machash->{$node}->[0]->{'mac'}) { # TODO: currently, only "mac" attribute with classic style is used, the "|" delimited string of "macaddress!hostname" format is not used $mac = $machash->{$node}->[0]->{'mac'}; if ( (index($mac, "|") eq -1) and (index($mac, "!") eq -1) ) {