Prevent a bunch of warnings about workflows that have not yet been run when getting the status report from Spectre.
This commit is contained in:
parent
49ee896aa2
commit
8370cb15c8
1 changed files with 1 additions and 1 deletions
|
|
@ -178,7 +178,7 @@ sub getStatusReport {
|
||||||
foreach my $instance (@{JSON->new->decode($result)}) {
|
foreach my $instance (@{JSON->new->decode($result)}) {
|
||||||
my $originalPriority = ($instance->{priority} - 1) * 10;
|
my $originalPriority = ($instance->{priority} - 1) * 10;
|
||||||
my $priority = $instance->{workingPriority}."/".$originalPriority;
|
my $priority = $instance->{workingPriority}."/".$originalPriority;
|
||||||
$output .= sprintf $pattern, $priority, $instance->{status}, $instance->{sitename}, $instance->{instanceId}, $instance->{lastState}, $instance->{lastRunTime};
|
$output .= sprintf $pattern, $priority, $instance->{status}, $instance->{sitename}, $instance->{instanceId}, $instance->{lastState}, ($instance->{lastRunTime} || '');
|
||||||
$total++;
|
$total++;
|
||||||
}
|
}
|
||||||
$output .= sprintf "\n%19.19s %4d\n", "Total Workflows", $total;
|
$output .= sprintf "\n%19.19s %4d\n", "Total Workflows", $total;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue