forked from lix-project/hydra
Controller/Build: remove unused parameter from showLog
This commit is contained in:
parent
38896db6b6
commit
ff390e89a6
|
@ -126,14 +126,13 @@ sub view_nixlog : Chained('buildChain') PathPart('nixlog') {
|
||||||
|
|
||||||
$c->stash->{step} = $step;
|
$c->stash->{step} = $step;
|
||||||
|
|
||||||
showLog($c, $mode, $step->busy == 0, $step->drvpath);
|
showLog($c, $mode, $step->drvpath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
sub view_log : Chained('buildChain') PathPart('log') {
|
sub view_log : Chained('buildChain') PathPart('log') {
|
||||||
my ($self, $c, $mode) = @_;
|
my ($self, $c, $mode) = @_;
|
||||||
showLog($c, $mode, $c->stash->{build}->finished,
|
showLog($c, $mode, $c->stash->{build}->drvpath);
|
||||||
$c->stash->{build}->drvpath);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -146,7 +145,7 @@ sub view_runcommandlog : Chained('buildChain') PathPart('runcommandlog') {
|
||||||
|
|
||||||
|
|
||||||
sub showLog {
|
sub showLog {
|
||||||
my ($c, $mode, $finished, $drvPath) = @_;
|
my ($c, $mode, $drvPath) = @_;
|
||||||
$mode //= "pretty";
|
$mode //= "pretty";
|
||||||
|
|
||||||
my $log_uri = $c->uri_for($c->controller('Root')->action_for("log"), [basename($drvPath)]);
|
my $log_uri = $c->uri_for($c->controller('Root')->action_for("log"), [basename($drvPath)]);
|
||||||
|
|
Loading…
Reference in a new issue