fix for bug 4130: mkdef/chdef handle the nics* attributes for node group

This commit is contained in:
ligc 2014-05-19 10:59:16 -05:00
parent 649d6820db
commit 80dc1ce1a7

View File

@ -2586,7 +2586,7 @@ sub setFINALattrs
# special case for the nic* attributes
# merge nic*.eth0, nic*.eth1
if ($::FILEATTRS{$objname}{objtype} eq 'node')
if (($::FILEATTRS{$objname}{objtype} eq 'node') || ($::FILEATTRS{$objname}{objtype} eq 'group'))
{
xCAT::DBobjUtils->collapsenicsattr($::FILEATTRS{$objname}, $objname);
}
@ -2647,7 +2647,7 @@ sub setFINALattrs
unless(exists($::CLIATTRS{$objname})) {
next;
}
if ($::CLIATTRS{$objname}{objtype} eq 'node')
if (($::CLIATTRS{$objname}{objtype} eq 'node') || ($::CLIATTRS{$objname}{objtype} eq 'group'))
{
# Even if only the nicips.eth0 is specified with CLI,
# need to read the whole nicips attribute from the nics table,