only set the groups attribute to default value when it was null
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16199 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f7ca82b1d1
commit
e2c745d9ba
@ -228,9 +228,15 @@ sub findme {
|
||||
$nltab->setNodeAttribs($bmcname, {groups=>$param{'groups'}.",bmc"});
|
||||
}
|
||||
} else {
|
||||
$nltab->setNodeAttribs($node, {groups=>"all"});
|
||||
my $nlent = $nltab->getNodeAttribs($node,['groups']);
|
||||
if (!$nlent || !$nlent->{'groups'}) {
|
||||
$nltab->setNodeAttribs($node, {groups=>"all"});
|
||||
}
|
||||
if ($bmcname) {
|
||||
$nltab->setNodeAttribs($bmcname, {groups=>"all,bmc"});
|
||||
$nlent = $nltab->getNodeAttribs($bmcname,['groups']);
|
||||
if (!$nlent || !$nlent->{'groups'}) {
|
||||
$nltab->setNodeAttribs($bmcname, {groups=>"all,bmc"});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user