clear currchain while refresh chain record
This commit is contained in:
parent
b555e65e36
commit
ff0a52935f
@ -933,6 +933,7 @@ Usage:
|
||||
my %chainAttr = {};
|
||||
foreach my $node (@$nodes){
|
||||
$chainAttr{$node}{'chain'} = $chainstr;
|
||||
$chainAttr{$node}{'currchain'} = '';
|
||||
}
|
||||
my $chaintab = xCAT::Table->new('chain', -create=>1);
|
||||
$chaintab->setNodesAttribs(\%chainAttr);
|
||||
@ -1324,7 +1325,7 @@ Usage:
|
||||
|
||||
# DB update: chain table.
|
||||
my $chaintab = xCAT::Table->new('chain', -create=>1);
|
||||
$mactab->setNodeAttribs($hostname, {chain=>$chainstr});
|
||||
$chaintab->setNodeAttribs($hostname, {chain=>$chainstr, currchain=>''});
|
||||
$chaintab->close();
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user