fix for bug 3476: remove empty nics definition from nics table

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15847 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2013-04-07 06:53:05 +00:00
parent 64bae37fe1
commit c308aa725e

View File

@ -2736,8 +2736,13 @@ sub collapsenicsattr()
{
if ($1 && $2)
{
# $nicattrs{nicips}{eth0} = "1.1.1.1|1.2.1.1"
$nicattrs{$1}{$2} = $nodeattrhash->{$nodeattr};
# chdef <noderange> nicips.eth2= to remove the definition for eth2
# in this case, the $nodeattrhash->{'nicips.eth0'} is blank
if ($nodeattrhash->{$nodeattr})
{
# $nicattrs{nicips}{eth0} = "1.1.1.1|1.2.1.1"
$nicattrs{$1}{$2} = $nodeattrhash->{$nodeattr};
}
# remove nicips.eth0 from the %::FILEATTRS
delete $nodeattrhash->{$nodeattr};