mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-03 03:50:08 +00:00
Merge pull request #3723 from robin2008/destiny-3722
Fix 3722, move setNodesAttribute out of the node loop
This commit is contained in:
commit
786901ac88
@ -655,8 +655,8 @@ sub setdestiny {
|
||||
if ($reststates) {
|
||||
$updates->{$_}->{'currchain'} = $reststates;
|
||||
}
|
||||
$chaintab->setNodesAttribs($updates);
|
||||
}
|
||||
$chaintab->setNodesAttribs($updates);
|
||||
return getdestiny($flag + 1);
|
||||
}
|
||||
|
||||
@ -784,6 +784,7 @@ sub getdestiny {
|
||||
@nodes = ($node);
|
||||
}
|
||||
my $node;
|
||||
xCAT::MsgUtils->trace(0, "d", "destiny->process_request: getdestiny...");
|
||||
$restab = xCAT::Table->new('noderes');
|
||||
my $chaintab = xCAT::Table->new('chain');
|
||||
my $chainents = $chaintab->getNodesAttribs(\@nodes, [qw(currstate chain)]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user