From 687b9b1dd5278289419747edaec7d02d0ecaa68f Mon Sep 17 00:00:00 2001 From: ligc Date: Mon, 19 May 2014 10:59:16 -0500 Subject: [PATCH] fix for bug 4130: mkdef/chdef handle the nics* attributes for node group --- xCAT-server/lib/xcat/plugins/DBobjectdefs.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm index e18a5f707..d211af164 100755 --- a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm +++ b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm @@ -2582,7 +2582,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); } @@ -2643,7 +2643,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,