Use getMainOutput
This commit is contained in:
parent
eb9d0c8992
commit
2b3c72efeb
@ -543,7 +543,7 @@ sub get_info : Chained('build') PathPart('api/get-info') Args(0) {
|
|||||||
# !!! strip the json prefix
|
# !!! strip the json prefix
|
||||||
$c->stash->{jsonBuildId} = $build->id;
|
$c->stash->{jsonBuildId} = $build->id;
|
||||||
$c->stash->{jsonDrvPath} = $build->drvpath;
|
$c->stash->{jsonDrvPath} = $build->drvpath;
|
||||||
my $out = $build->buildoutputs->find({name => "out"});
|
my $out = getMainOutput($build);
|
||||||
$c->stash->{jsonOutPath} = $out->path if defined $out;
|
$c->stash->{jsonOutPath} = $out->path if defined $out;
|
||||||
$c->forward('View::JSON');
|
$c->forward('View::JSON');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user