Commit d94f1e05 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Bug fixes to Logfile generation on node errors.

parent bd2964e2
......@@ -1793,10 +1793,10 @@ sub WaitDone($@)
if (0) {
my $bootlog;
if ($node->GetBootLog(\$bootlog) == 0 && $bootlog ne "") {
my $logfile = Logfile->CreateFromString($self->group(),
my $logfile = Logfile->CreateFromString($parent->group(),
$bootlog);
if (defined($logfile)) {
$logfile->SetMetadata({"bootlog" => $node->node_id()}, 1);
$logfile->SetMetadata([["bootlog", $node->node_id()]], 1);
}
}
}
......@@ -1825,9 +1825,9 @@ sub WaitDone($@)
my $bootlog;
if ($node->GetBootLog(\$bootlog) == 0 && $bootlog ne "") {
my $logfile = Logfile->CreateFromString($self->group(), $bootlog);
my $logfile = Logfile->CreateFromString($parent->group(), $bootlog);
if (defined($logfile)) {
$logfile->SetMetadata({"bootlog" => $node->node_id()}, 1);
$logfile->SetMetadata([["bootlog", $node->node_id()]], 1);
}
$node->_bootlog($bootlog);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment