fix bug 4014: updatenodegroups routine always add all group to the node

This commit is contained in:
zhaoertao 2014-03-10 19:04:31 -07:00
parent b1948ed1e9
commit ea3eebe585
2 changed files with 2 additions and 2 deletions

View File

@ -1999,7 +1999,7 @@ sub updatenodegroups {
}
}
my ($ent) = $tabhd->getNodeAttribs($node, ['groups']);
my @list = qw(all);
my @list = ();
if (defined($ent) and $ent->{groups}) {
push @list, split(/,/,$ent->{groups});
}

View File

@ -4423,7 +4423,7 @@ sub process_request {
if ($request->{mtm} and $request->{mtm} =~ /^(\w{4})/) {
my $group = xCAT::data::ibmhwtypes::parse_group($request->{mtm});
if (defined($group)) {
xCAT::TableUtils->updatenodegroups($node, $group);
xCAT::TableUtils->updatenodegroups($node, $group.",all");
}
}
if ($mac) {