Fixed one issue in xcat2nim with dynamic node group
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4418 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
fa90949bd1
commit
e26893a6af
@ -690,6 +690,17 @@ sub x2n
|
||||
# create a NIM group definition
|
||||
if ($::objtype{$objname} eq 'group') {
|
||||
$::objhash{$objname}{'grouptype'}='static';
|
||||
my $grptab = xCAT::Table->new('nodegroup');
|
||||
my @grplist = @{$grptab->getAllEntries()}; #dynamic groups and static groups in nodegroup table
|
||||
foreach my $grpdef_ref (@grplist) {
|
||||
my %grpdef = %$grpdef_ref;
|
||||
if (($grpdef{'groupname'} eq $objname) && ($grpdef{'grouptype'} eq 'dynamic')) {
|
||||
$::objhash{$objname}{'grouptype'}='dynamic';
|
||||
last;
|
||||
}
|
||||
}
|
||||
$grptab->close;
|
||||
|
||||
if (mkgrpdef($objname, $callback)) {
|
||||
# could not create group definition
|
||||
$error++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user