Commit 5b8a326e authored by Leigh B Stoller's avatar Leigh B Stoller

Put status for all nodes into the webtask.

parent c00661c9
......@@ -401,14 +401,19 @@ sub DoSnapshot()
my $blob = $response->value();
if (defined($webtask)) {
#
# Need to find the sliver inside the blob.
#
my $sliverblob = $blob->{'details'}->{$sliver_urn};
if (defined($sliverblob)) {
$webtask->state($sliverblob->{'state'});
$webtask->rawstate($sliverblob->{'rawstate'});
# Always stick in full status for web interface.
my $statusblob = {};
foreach my $urn (keys(%{$blob->{'details'}})) {
my $details = $blob->{'details'}->{$urn};
my $node_id = $details->{'client_id'};
$statusblob->{$node_id} = $details;
# Special for imaging status display
if ($urn eq $sliver_urn) {
$webtask->state($details->{'state'});
$webtask->rawstate($details->{'rawstate'});
}
}
$webtask->sliverstatus($statusblob)
}
if ($blob->{'status'} eq "failed") {
$failed = 1;
......
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